original_docstring: 
          Takes an input channel_capacity dict and returns the compiled list
          of regexes that get_capacity will look for as self.channel_capacity/
          
docstring: Takes an input channel_capacity dict and returns the compiled list
  of regexes that get_capacity will look for as self.channel_capacity
docstring_tokens: Takes an input channel_capacity dict and returns the compiled list of regexes that get_capacity will look for as self . channel_capacity
code: def compile_capacities(self, channel_capacity):
          """
          Takes an input channel_capacity dict and returns the compiled list
          of regexes that get_capacity will look for as self.channel_capacity/
          """
          result = []
          for pattern, value in channel_capacity.items():
              # If they passed in a precompiled regex, leave it, else intepret
              # it as a glob.
              if hasattr(pattern, "match"):
                  result.append((pattern, value))
              else:
                  result.append((re.compile(fnmatch.translate(pattern)), value))
          return result
code_tokens: def compile_capacities ( self , channel_capacity ) : result = [ ] for pattern , value in channel_capacity . items ( ) : if hasattr ( pattern , "match" ) : result . append ( ( pattern , value ) ) else : result . append ( ( re . compile ( fnmatch . translate ( pattern ) ) , value ) ) return result
short_docstring: Takes an input channel_capacity dict and returns the compiled list
  of regexes that get_capacity will look for as self.channel_capacity
short_docstring_tokens: Takes an input channel_capacity dict and returns the compiled list of regexes that get_capacity will look for as self . channel_capacity
comment: """
          Takes an input channel_capacity dict and returns the compiled list
          of regexes that get_capacity will look for as self.channel_capacity/
          """$SEP$# If they passed in a precompiled regex, leave it, else intepret$SEP$# it as a glob.