Skip to content
Myr

Merge pull request #4685 from Stevoisiak/patch-2

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

Note that session() should not be used

authored by Nate Prewitt · committed by GitHub · parents 883caaf, 1c13c5e · Browse files · 1 file+6 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+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:requests/sessions.py+6 added-1 removed
733 unmodified lines
734def session():735 """736 Returns a :class:`Session` for context-management.737738 .. deprecated:: 1.0.0739740 This method has been deprecated since version 1.0.0 and is only kept for741 backwards compatibility. New code should use :class:`~requests.sessions.Session`742 to create a session. This may be removed at a future date.743744 :rtype: Session745 """740746 return Session()