parameters: (self, prefix, adapter)
docstring: Registers a connection adapter to a prefix.
  
          Adapters are sorted in descending order by prefix length.
docstring_summary: Registers a connection adapter to a prefix.
docstring_tokens: Registers a connection adapter to a prefix .
function: def mount(self, prefix, adapter):
          """Registers a connection adapter to a prefix.
  
          Adapters are sorted in descending order by prefix length.
          """
          self.adapters[prefix] = adapter
          keys_to_move = [k for k in self.adapters if len(k) < len(prefix)]
  
          for key in keys_to_move:
              self.adapters[key] = self.adapters.pop(key)
function_tokens: def mount ( self , prefix , adapter ) : self . adapters [ prefix ] = adapter keys_to_move = [ k for k in self . adapters if len ( k ) < len ( prefix ) ] for key in keys_to_move : self . adapters [ key ] = self . adapters . pop ( key )