New submission from Ned Deily <n...@acm.org>: On OS X, urllib.request in Python 3 is supposed to use the operating system's proxy configuration by default, unless overridden by environment variables or by the caller providing an explicit proxy configuration.
In Python 2, urllib (and, indirectly, urllib2) were modified to use the OS X SystemConfiguration framework API instead of the obsolete classic MacOS Internet Configuration via the deprecated Macintosh ic library module, which was removed in Python 3. However, in the transition from Python 2 urllib/urllib2 to Python 3 urllib.request, the changes to the darwin-specific getproxies functions were not made. So, at the moment, Python 3 urllib.request tries to import the non-existant ic module and silently fails, effectively ignoring the system proxy configuration. The solution is to forward port the corresponding code from Python 2 urllib along with the helper module _scproxy.c. ---------- assignee: ronaldoussoren components: Library (Lib), Macintosh messages: 94153 nosy: ned.deily, ronaldoussoren severity: normal status: open title: urllib.request system proxy configuration lookup broken for OS X in Python 3 versions: Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7154> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com