Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This commit makes the API docs more clear. The 'key' is an implementation detail.

authored by Alex Muller · committed by Alex Muller · parent cada19b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/sessions.py+1 added-1 removed
702 unmodified lines
703704 def mount(self, prefix, adapter):705 """Registers a connection adapter to a prefix.706707 Adapters are sorted in descending order by key length.707 Adapters are sorted in descending order by prefix length.708 """709 self.adapters[prefix] = adapter710 keys_to_move = [k for k in self.adapters if len(k) < len(prefix)]711
20 unmodified lines