Skip to content

Commit

Permalink
Update the vendored requests for the moved compat module
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jul 29, 2018
1 parent 4fc6978 commit abfe928
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pip/_vendor/requests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _check_cryptography(cryptography_version):
RequestsDependencyWarning)

# Attempt to enable urllib3's SNI support, if possible
from pip._internal.compat import WINDOWS
from pip._internal.utils.compat import WINDOWS
if not WINDOWS:
try:
from pip._vendor.urllib3.contrib import pyopenssl
Expand Down
2 changes: 1 addition & 1 deletion tasks/vendoring/patches/requests.patch
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ index 9c3b769..36a4ef40 100644
- _check_cryptography(cryptography_version)
-except ImportError:
- pass
+from pip._internal.compat import WINDOWS
+from pip._internal.utils.compat import WINDOWS
+if not WINDOWS:
+ try:
+ from pip._vendor.urllib3.contrib import pyopenssl
Expand Down

0 comments on commit abfe928

Please sign in to comment.