Use 'prefix' instead of 'key' in session docstring

This commit makes the API docs more clear. The 'key' is an
implementation detail.
This commit is contained in:
Alex Muller
2017-07-20 10:06:19 +02:00
parent cada19b300
commit d8c2fdf92f
+1 -1
View File
@@ -704,7 +704,7 @@ class Session(SessionRedirectMixin):
def mount(self, prefix, adapter):
"""Registers a connection adapter to a prefix.
Adapters are sorted in descending order by key length.
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)]