Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
89ac82ad
Commit
89ac82ad
authored
Jul 16, 2004
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #779167: use InternetConfig proxy settings on MacOSX (in addition
to unix-style).
parent
d1f1b932
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Lib/urllib.py
Lib/urllib.py
+5
-2
No files found.
Lib/urllib.py
View file @
89ac82ad
...
...
@@ -1187,8 +1187,8 @@ def getproxies_environment():
proxies
[
name
[:
-
6
]]
=
value
return
proxies
if
os
.
name
==
'mac
'
:
def
getproxies
():
if
sys
.
platform
==
'darwin
'
:
def
getproxies
_internetconfig
():
"""Return a dictionary of scheme -> proxy server URL mappings.
By convention the mac uses Internet Config to store
...
...
@@ -1221,6 +1221,9 @@ if os.name == 'mac':
def
proxy_bypass
(
x
):
return
0
def
getproxies
():
return
getproxies_environment
()
or
getproxies_internetconfig
()
elif
os
.
name
==
'nt'
:
def
getproxies_registry
():
"""Return a dictionary of scheme -> proxy server URL mappings.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment