diff options
| author | Kenneth Reitz <me@kennethreitz.org> | 2017-05-25 16:46:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-25 16:46:08 -0700 |
| commit | cc7b3ee7ed779cae4dcee2bf782cc124f3a55c75 (patch) | |
| tree | 0fc4f3707721d4928eb80c684121120c2c06c4b7 | |
| parent | 4f8f4b5fb3d61f39e47099597d3bb85974d85357 (diff) | |
| parent | e038aad3ccbd5526346150bd37c8c8a8ee0a0b9b (diff) | |
| download | python-requests-cc7b3ee7ed779cae4dcee2bf782cc124f3a55c75.tar.gz | |
Merge pull request #4064 from sigmavirus24/fix-rtfd
Avoid breaking people using requests.__version__
| -rw-r--r-- | docs/conf.py | 2 | ||||
| -rw-r--r-- | requests/__about__.py (renamed from requests/__version__.py) | 0 | ||||
| -rw-r--r-- | requests/__init__.py | 2 | ||||
| -rwxr-xr-x | setup.py | 2 |
4 files changed, 3 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index 674f198e..9b135d31 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,7 +25,7 @@ sys.path.insert(0, os.path.abspath('..')) sys.path.insert(0, os.path.abspath('_themes')) import requests -from requests.__version__ import __version__ +from requests import __version__ # -- General configuration ------------------------------------------------ diff --git a/requests/__version__.py b/requests/__about__.py index 9abded42..9abded42 100644 --- a/requests/__version__.py +++ b/requests/__about__.py diff --git a/requests/__init__.py b/requests/__init__.py index 2bcba252..4d3055c8 100644 --- a/requests/__init__.py +++ b/requests/__init__.py @@ -40,7 +40,7 @@ is at <http://python-requests.org>. :license: Apache 2.0, see LICENSE for more details. """ -from .__version__ import * +from .__about__ import * # Attempt to enable urllib3's SNI support, if possible try: @@ -53,7 +53,7 @@ requires = [] test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock'] about = {} -with open(os.path.join(here, 'requests', '__version__.py')) as f: +with open(os.path.join(here, 'requests', '__about__.py')) as f: exec(f.read(), about) with open('README.rst', 'r', 'utf-8') as f: |
