mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #4064 from sigmavirus24/fix-rtfd
Avoid breaking people using requests.__version__
This commit is contained in:
+1
-1
@@ -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 ------------------------------------------------
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user