Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7adeed3

Browse files
Merged revisions 82150 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r82150 | ronald.oussoren | 2010-06-22 11:32:22 +0200 (Tue, 22 Jun 2010) | 12 lines The code in _scproxy (a mac specific helper module to detect proxy settings) had the wrong logic for detecting if the checkbox 'Exclude simple hostnames' is checked. This checkin fixes that. As a result the test failure 'Issue8455' goes away on systems where the checkbox is not checked. I'm carefully avoiding saying that is fixes that issue, test_urllib2_localnet assumes that system proxy settings are empty (not just on OSX, see Issue8455 for details). ........
1 parent 0f377a5 commit 7adeed3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_scproxy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ get_proxy_settings(PyObject* mod __attribute__((__unused__)))
7575
aNum = CFDictionaryGetValue(proxyDict,
7676
kSCPropNetProxiesExcludeSimpleHostnames);
7777
if (aNum == NULL) {
78-
v = PyBool_FromLong(1);
78+
v = PyBool_FromLong(0);
7979
} else {
8080
v = PyBool_FromLong(cfnum_to_int32(aNum));
8181
}

0 commit comments

Comments
 (0)