]> granicus.if.org Git - python/commitdiff
Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified IP addres...
authorRonald Oussoren <ronaldoussoren@mac.com>
Mon, 14 Mar 2011 22:46:50 +0000 (18:46 -0400)
committerRonald Oussoren <ronaldoussoren@mac.com>
Mon, 14 Mar 2011 22:46:50 +0000 (18:46 -0400)
1  2 
Lib/test/test_urllib2.py
Lib/urllib/request.py
Misc/NEWS

index 14336705faa66cbf7376046b78eb0ee024d8c736,1704683b4dd61ac357ccb6ba98ccb90d80389584..69bcfa25cc4f11ba25a133b96d96e46b175ffa45
@@@ -4,10 -4,11 +4,12 @@@ from test import suppor
  import os
  import io
  import socket
 +import array
  
  import urllib.request
- from urllib.request import Request, OpenerDirector
+ # The proxy bypass method imported below has logic specific to the OSX
+ # proxy config data structure but is testable on all platforms.
+ from urllib.request import Request, OpenerDirector, _proxy_bypass_macosx_sysconf
  
  # XXX
  # Request
Simple merge
diff --cc Misc/NEWS
index f3442a52bbbb44e5f5ab3ce81c00c79077ff6003,d4ce939119fd230178cdc05bcc10dc92bac1bb74..a201895953992a5539999252d60866da33632a90
+++ b/Misc/NEWS
@@@ -34,6 -40,6 +34,9 @@@ Core and Builtin
  Library
  -------
  
++- Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified 
++  IP addresses in the proxy exception list. 
++
  - Issue #11491: dbm.error is no longer raised when dbm.open is called with
    the "n" as the flag argument and the file exists. The behavior matches
    the documentation and general logic.