Skip to content
Myr

Silence SOCKS dependency warning on import

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

authored by Cory Benfield · committed by Cory Benfield · parent 08364c6 · Browse files · 1 file+6 added−0 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−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:requests/__init__.py+6 added
53 unmodified lines
54 pyopenssl.inject_into_urllib3()55except ImportError:56 pass5758import warnings5960# urllib3's DependencyWarnings should be silenced.61from .packages.urllib3.exceptions import DependencyWarning62warnings.simplefilter('ignore', DependencyWarning)6364from . import utils65from .models import Request, Response, PreparedRequest66from .api import request, get, head, post, patch, put, delete, options67from .sessions import session, Session
22 unmodified lines