Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1508)

Unified Diff: native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/__init__.py

Issue 874393004: [NaCl SDK] Update fancy_urllib for Python 2.7.9 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/__init__.py
diff --git a/native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/__init__.py b/native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/__init__.py
index d4da0dd192005b7bb0eae318850b3053976f04d4..dfbad4d70ef445f4a3ed86b2e1ca1cb0e4501430 100644
--- a/native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/__init__.py
+++ b/native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/__init__.py
@@ -329,7 +329,7 @@ class FancyProxyHandler(urllib2.ProxyHandler):
class FancyHTTPSHandler(urllib2.HTTPSHandler):
"""An HTTPSHandler that works with CONNECT-enabled proxies."""
- def do_open(self, http_class, req):
+ def do_open(self, http_class, req, **kwargs):
# Intentionally very specific so as to opt for false negatives
# rather than false positives.
try:
@@ -339,7 +339,8 @@ class FancyHTTPSHandler(urllib2.HTTPSHandler):
req._key_file,
req._cert_file,
req._ca_certs),
- req)
+ req,
+ **kwargs)
except urllib2.URLError, url_error:
try:
import ssl

Powered by Google App Engine
This is Rietveld 408576698