aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCory Fields <theuni-nospam-@xbmc.org>2013-03-14 17:54:09 -0400
committerCory Fields <theuni-nospam-@xbmc.org>2013-03-14 18:15:12 -0400
commit6cb46606c0c4b8624b3e83df100ca04647e46530 (patch)
tree1b03772bb39b524917ec976e9f3bc162016b4a37 /tools
parent3f27f97c65e6f2784458a6d29dd6d820449534d2 (diff)
depends: python: fix urllib on ios for real
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/python26/Python-2.6.5-urllib.diff41
1 files changed, 27 insertions, 14 deletions
diff --git a/tools/depends/target/python26/Python-2.6.5-urllib.diff b/tools/depends/target/python26/Python-2.6.5-urllib.diff
index 672117b8f6..5b2264df50 100644
--- a/tools/depends/target/python26/Python-2.6.5-urllib.diff
+++ b/tools/depends/target/python26/Python-2.6.5-urllib.diff
@@ -1,15 +1,28 @@
--- Lib/urllib.py 2010-02-20 17:13:01.000000000 -0500
-+++ Lib/urllib.py 2013-03-14 01:11:49.000000000 -0400
-@@ -1401,10 +1401,10 @@
- if getproxies_environment():
- return proxy_bypass_environment(host)
- else:
-- return proxy_bypass_macosx_sysconf(host)
-+ return false
-
- def getproxies():
-- return getproxies_environment() or getproxies_macosx_sysconf()
-+ return getproxies_environment()
-
- elif os.name == 'nt':
- def getproxies_registry():
++++ Lib/urllib.py 2013-03-14 18:12:02.526251189 -0400
+@@ -1330,7 +1330,6 @@
+
+
+ if sys.platform == 'darwin':
+- from _scproxy import _get_proxy_settings, _get_proxies
+
+ def proxy_bypass_macosx_sysconf(host):
+ """
+@@ -1352,7 +1351,7 @@
+ parts = (parts + [0, 0, 0, 0])[:4]
+ return (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3]
+
+- proxy_settings = _get_proxy_settings()
++ return False
+
+ # Check for simple host names:
+ if '.' not in host:
+@@ -1393,7 +1392,7 @@
+ This function uses the MacOSX framework SystemConfiguration
+ to fetch the proxy information.
+ """
+- return _get_proxies()
++ return {}
+
+
+