[Python-checkins] r82150 - python/trunk/Mac/Modules/_scproxy.c

ronald.oussoren python-checkins at python.org
Tue Jun 22 11:32:25 CEST 2010


Author: ronald.oussoren
Date: Tue Jun 22 11:32:22 2010
New Revision: 82150

Log:
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).


Modified:
   python/trunk/Mac/Modules/_scproxy.c

Modified: python/trunk/Mac/Modules/_scproxy.c
==============================================================================
--- python/trunk/Mac/Modules/_scproxy.c	(original)
+++ python/trunk/Mac/Modules/_scproxy.c	Tue Jun 22 11:32:22 2010
@@ -68,7 +68,7 @@
         aNum = CFDictionaryGetValue(proxyDict,
             kSCPropNetProxiesExcludeSimpleHostnames);
         if (aNum == NULL) {
-            v = PyBool_FromLong(1);
+            v = PyBool_FromLong(0);
         } else {
             v = PyBool_FromLong(cfnum_to_int32(aNum));
         }


More information about the Python-checkins mailing list