Skip to content
Myr

Merge pull request #1585 from rvoicilas/master

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

Use values() when the keys are not being used

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 9ffc5e6, 056da86 · 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
498 unmodified lines
499 raise InvalidSchema("No connection adapters were found for '%s'" % url)500501 def close(self):502 """Closes all adapters and as such the session"""503 for _, v in self.adapters.items():503 for v in self.adapters.values():504 v.close()505506 def mount(self, prefix, adapter):507 """Registers a connection adapter to a prefix.
19 unmodified lines