Merge pull request #4064 from sigmavirus24/fix-rtfd

Avoid breaking people using requests.__version__
This commit is contained in:
2017-05-25 16:46:08 -07:00
committed by GitHub
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 ------------------------------------------------
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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: