Skip to content
Myr

Merge pull request #4195 from requests/requests/sessions-mount-docstring-clarity

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

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

authored by Cory Benfield · committed by GitHub · parents cada19b, d8c2fdf · 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