Skip to content
Myr

fix __init__.py

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 168109f · Browse files · 2 files+3 added−3 removed
This commit

State

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

Diff stats

2 files+3 added−3 removed

  • tests:+1 added−1 removed
  • other:+2 added−2 removed

2 files+3 added−3 removed

modified:requests/__init__.py+2 added-2 removed
44 unmodified lines
45from .__version__ import __copyright__, __cake__4647# Attempt to enable urllib3's SNI support, if possible48try:49 from .packages.urllib3.contrib import pyopenssl49 from urllib3.contrib import pyopenssl50 pyopenssl.inject_into_urllib3()51except ImportError:52 pass5354import warnings5556# urllib3's DependencyWarnings should be silenced.57from .packages.urllib3.exceptions import DependencyWarning57from urllib3.exceptions import DependencyWarning58warnings.simplefilter('ignore', DependencyWarning)5960from . import utils61from .models import Request, Response, PreparedRequest
22 unmodified lines
modified:tests/__init__.py+1 added-1 removed
2 unmodified lines
3"""Requests test package initialisation."""45import warnings67import urllib3 as urllib3_package7import urllib38from urllib3.exceptions import SNIMissingWarning910# urllib3 sets SNIMissingWarning to only go off once,11# while this test suite requires it to always fire
2 unmodified lines