diff options
author | Christopher Baines <mail@cbaines.net> | 2015-12-22 13:46:21 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2015-12-22 13:46:21 +0000 |
commit | 1f19c06843e6d266368e3b570352bdf7d789a0de (patch) | |
tree | 042bc99c162d671c2b2fb7cc5cb4400ef26c1bed /requests/__init__.py | |
parent | cb40ec082506c0d9eb05978839bed2f12541af35 (diff) | |
download | python-requests-1f19c06843e6d266368e3b570352bdf7d789a0de.tar python-requests-1f19c06843e6d266368e3b570352bdf7d789a0de.tar.gz |
Import requests_2.9.1.orig.tar.gzupstream/2.9.1upstream
Diffstat (limited to 'requests/__init__.py')
-rw-r--r-- | requests/__init__.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/requests/__init__.py b/requests/__init__.py index 3d8188a..bd5b5b9 100644 --- a/requests/__init__.py +++ b/requests/__init__.py @@ -42,8 +42,8 @@ is at <http://python-requests.org>. """ __title__ = 'requests' -__version__ = '2.8.1' -__build__ = 0x020801 +__version__ = '2.9.1' +__build__ = 0x020901 __author__ = 'Kenneth Reitz' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2015 Kenneth Reitz' @@ -62,7 +62,8 @@ from .sessions import session, Session from .status_codes import codes from .exceptions import ( RequestException, Timeout, URLRequired, - TooManyRedirects, HTTPError, ConnectionError + TooManyRedirects, HTTPError, ConnectionError, + FileModeWarning, ) # Set default logging handler to avoid "No handler found" warnings. @@ -75,3 +76,8 @@ except ImportError: pass logging.getLogger(__name__).addHandler(NullHandler()) + +import warnings + +# FileModeWarnings go off per the default. +warnings.simplefilter('default', FileModeWarning, append=True) |