History log of /external/python/cpython2/Lib/urllib.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
019a2e225b168de0c72ab3aad895c83aa79ab2d9 10-Sep-2016 Raymond Hettinger <python@rcn.com> Issue #22450: Use "Accept: */*" in the default headers for urllib
/external/python/cpython2/Lib/urllib.py
75d7b615ba70fc5759d16dee95bbd8f0474d8a9c 30-Jul-2016 Senthil Kumaran <senthil@uthcode.com> Prevent HTTPoxy attack (CVE-2016-1000110)

Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.

Issue reported and patch contributed by Rémi Rampin.
/external/python/cpython2/Lib/urllib.py
b5a67dec9841b62e4fb4728ff754323592946f17 10-May-2016 Senthil Kumaran <senthil@uthcode.com> Closes issue26960.

Backport issue16270: Fix for urllib hanging with ftp urls.
/external/python/cpython2/Lib/urllib.py
064ee4d28cbc39da8d0a872b71dd8c2b72cdfa9d 30-Apr-2016 Martin Panter <vadmium+py@gmail.com> Issue #26864: Fix case insensitivity and suffix comparison with no_proxy

Patch by Xiang Zhang.
/external/python/cpython2/Lib/urllib.py
b31c87bfcfc8b904ef05d998b4c38122b8651763 25-Apr-2016 Senthil Kumaran <senthil@uthcode.com> backport fix for Issue #26804.

urllib.request will prefer lower_case proxy environment variables over
UPPER_CASE or Mixed_Case ones.
/external/python/cpython2/Lib/urllib.py
ade409767137b1e60ca2125d8ecfe288d9f17d20 04-Feb-2016 Martin Panter <vadmium+py@gmail.com> Issue #12923: Reset FancyURLopener's redirect counter even on exception

Based on patches by Brian Brazil and Daniel Rocco.
/external/python/cpython2/Lib/urllib.py
1aa2c0f073bdbed4fa824591d53e20bbf3d01add 10-Apr-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23865: close() methods in multiple modules now are idempotent and more
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
/external/python/cpython2/Lib/urllib.py
5ab1c01bfd1b5a825aafa214016b8441f7325081 07-Apr-2015 Victor Stinner <victor.stinner@gmail.com> Issue #23881: urllib.ftpwrapper constructor now closes the socket if the FTP
connection failed.
/external/python/cpython2/Lib/urllib.py
b206473ef8a7abe9abf5ab8776ea3bcb90adc747 24-Nov-2014 Benjamin Peterson <benjamin@python.org> give urllib.urlopen a context parameter (closes #22927)
/external/python/cpython2/Lib/urllib.py
326b5ab05a810dd75670b5e3386127d172bedca3 18-Jan-2014 Serhiy Storchaka <storchaka@gmail.com> Issue #20270: urllib and urlparse now support empty ports.
/external/python/cpython2/Lib/urllib.py
964c25f1d91d2f56bf3924b1d1feefaeb3b3b2c5 02-Jun-2013 Senthil Kumaran <senthil@uthcode.com> Fix #17967 - Fix related to regression on Windows.

os.path.join(*self.dirs) produces an invalid path on windows.
ftp paths are always forward-slash seperated like this. /pub/dir.
/external/python/cpython2/Lib/urllib.py
7351b66eb9060cce37073bf323f73d79dc3ef488 01-Jun-2013 Senthil Kumaran <senthil@uthcode.com> Fix thishost helper funtion in urllib. Returns the ipaddress of localhost when
hostname is resolvable by socket.gethostname for local machine. This all fixes
certain freebsd builtbot failures.
/external/python/cpython2/Lib/urllib.py
243cb807e970e19d54fbebea19d6f3130403272d 01-Jun-2013 Senthil Kumaran <senthil@uthcode.com> Fix #17967: For ftp urls CWD to target instead of hopping to each directory
towards target. This fixes a bug where target is accessible, but parent
directories are restricted.
/external/python/cpython2/Lib/urllib.py
923baea9f921e829ece677e32c45a1a91acb3bef 14-Mar-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #1285086: Get rid of the refcounting hack and speed up urllib.unquote().
/external/python/cpython2/Lib/urllib.py
4c59211bd5b136880bb3b5c6aef033e2b62c1019 15-Mar-2012 Senthil Kumaran <senthil@uthcode.com> Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199
/external/python/cpython2/Lib/urllib.py
58c60620689cac234fa8e860412e3d7af354c776 21-Jan-2012 Senthil Kumaran <senthil@uthcode.com> Fix Issue6631 - Disallow relative files paths in urllib*.open()
/external/python/cpython2/Lib/urllib.py
bcd833f30f77160e321056fa548d76e2abe26701 10-Jan-2012 Senthil Kumaran <senthil@uthcode.com> - Issue #13642: Unquote before b64encoding user:password during Basic
Authentication. Patch contributed by Joonas Kuorilehto and Michele Orrù.
/external/python/cpython2/Lib/urllib.py
f3d35f0efe4bd669782e29a9ccf21570878ed319 18-Dec-2011 Charles-François Natali <neologix@free.fr> Issue #8035: urllib: Fix a bug where the client could remain stuck after a
redirection or an error.
/external/python/cpython2/Lib/urllib.py
87e585581da34e0da900f3704c0cf162bc144b7d 31-Oct-2011 Senthil Kumaran <senthil@uthcode.com> Port to 2.7 - issue 10817 - Fix urlretrieve function to raise
ContentTooShortError even when reporthook is None. Patch by Jyrki Pulliainen.
/external/python/cpython2/Lib/urllib.py
ef651ac162e131c80310ad3db3c4634a01949904 07-Aug-2011 Senthil Kumaran <senthil@uthcode.com> whitespace fix.
/external/python/cpython2/Lib/urllib.py
351950fbfc2805f8ccef51b0bf28f9dbb6017898 07-Aug-2011 Senthil Kumaran <senthil@uthcode.com> Remove the old dead test program within the module in 2.7.
/external/python/cpython2/Lib/urllib.py
b5bd4c88b5de771647cc644b4e50e701cadba08c 05-Aug-2011 Senthil Kumaran <senthil@uthcode.com> Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
/external/python/cpython2/Lib/urllib.py
a620facc1f66654c1b3337ed6d7dfa158cfaf8f2 23-Jul-2011 Nadeem Vawda <nadeem.vawda@gmail.com> Fix typo in dbf1e1a27427 that was causing some buildbots to fail.
/external/python/cpython2/Lib/urllib.py
b42c53e442b211d0ded1d4c9abd18c74d29ed663 23-Jul-2011 Nadeem Vawda <nadeem.vawda@gmail.com> Issue #10883: Fix socket leaks in urllib.request.

* ftpwrapper now uses reference counting to ensure that the underlying socket
is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs

Initial patch by Victor Stinner.
/external/python/cpython2/Lib/urllib.py
07ef62c47c14ea80e9fd0923e1693d222df506ff 29-Mar-2011 Guido van Rossum <guido@python.org> Merge issue 11662 from 2.6.
079381d236f6e62db3a48cbffb14978124d94d14 29-Mar-2011 Guido van Rossum <guido@python.org> Merge issue 11662 from 2.5.
f1509306d266a091c6c12ec3b78b8eaaa9d0aff9 28-Mar-2011 guido@google.com <guido@google.com> Add tests for the urllib[2] vulnerability. Change to raise exceptions.
/external/python/cpython2/Lib/urllib.py
2bc23b8448394e96d5562fcc7b69aa54bb2c1a38 24-Mar-2011 guido@google.com <guido@google.com> Add FTP to the allowed url schemes. Add Misc/NEWS.
/external/python/cpython2/Lib/urllib.py
60a4a90c8dd2972eb4bb977e70835be9593cbbac 24-Mar-2011 guido@google.com <guido@google.com> Issue 22663: fix redirect vulnerability in urllib/urllib2.
/external/python/cpython2/Lib/urllib.py
1aa999c49ed82c89257c13cba5e210c3ba34c130 14-Mar-2011 Ronald Oussoren <ronaldoussoren@mac.com> Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified
IP addresses in the proxy exception list.
/external/python/cpython2/Lib/urllib.py
0b7cac11bfd3061ac78c25e5ae118faf16eb9924 22-Nov-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 86676 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r86676 | senthil.kumaran | 2010-11-22 12:48:26 +0800 (Mon, 22 Nov 2010) | 4 lines

Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does not
starts with one. This behavior is exhibited by browser and other clients.
........
/external/python/cpython2/Lib/urllib.py
9fce551e0e630f8da454b77d46264d812ba57f46 20-Nov-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 86520 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r86520 | senthil.kumaran | 2010-11-18 23:36:41 +0800 (Thu, 18 Nov 2010) | 3 lines

Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy
........
/external/python/cpython2/Lib/urllib.py
6980342c348a37b80c27c3552574a112e8c29650 13-Aug-2010 Florent Xicluna <florent.xicluna@gmail.com> Rolled back revisions 81259,81265 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

(due to 2.6.6 release candidate freeze)
/external/python/cpython2/Lib/urllib.py
1c24592b925ba4716f2c0cec10bfe59cef2eed30 10-Aug-2010 Florent Xicluna <florent.xicluna@gmail.com> Merged revisions 81053,81259,81265 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r81053 | florent.xicluna | 2010-05-10 21:59:22 +0200 (lun., 10 mai 2010) | 2 lines

Add a link on maketrans().
........
r81259 | florent.xicluna | 2010-05-17 12:39:07 +0200 (lun., 17 mai 2010) | 2 lines

Slight style cleanup.
........
r81265 | florent.xicluna | 2010-05-17 15:35:09 +0200 (lun., 17 mai 2010) | 2 lines

Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases.
........
/external/python/cpython2/Lib/urllib.py
880685f69894d3d267ac41abe0c06db3ba9a322d 22-Jul-2010 Senthil Kumaran <orsenthil@gmail.com> Reverting the checkin made in revision 82940, as it was adding new parameters to quote function in a bugfix release.
Discussed in issue1712522
/external/python/cpython2/Lib/urllib.py
c7743aaac3b318c3e4c8583d8b1e5f3be267d119 19-Jul-2010 Senthil Kumaran <orsenthil@gmail.com> Fix Issue9301 - urllib.quote(None) to raise TypeError
/external/python/cpython2/Lib/urllib.py
5dba6dfe6a8224a54c3a4fd5cc2393a734718a77 18-Jul-2010 Senthil Kumaran <orsenthil@gmail.com> Fixing Issue1712522 - urllib.quote to support Unicode. The default
encoding='utf-8' and errors='strict'.
/external/python/cpython2/Lib/urllib.py
73ae8dde6f68862d4d280c6c34c6548ca66e8698 14-Jul-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 82897 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint

................
r82897 | senthil.kumaran | 2010-07-15 01:52:17 +0530 (Thu, 15 Jul 2010) | 9 lines

Merged revisions 82895 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r82895 | senthil.kumaran | 2010-07-15 01:40:52 +0530 (Thu, 15 Jul 2010) | 3 lines

Fix a mistake, https proxy shoud be https://
........
................
/external/python/cpython2/Lib/urllib.py
0fdd385e2ce7b197e4eb6be4d2d03a115a5268ae 14-Jul-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 82895 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r82895 | senthil.kumaran | 2010-07-15 01:40:52 +0530 (Thu, 15 Jul 2010) | 3 lines

Fix a mistake, https proxy shoud be https://
........
/external/python/cpython2/Lib/urllib.py
7a4e8379437017ada5d0e8e74c752cc6c4b5030f 14-Jul-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 82892 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint

................
r82892 | senthil.kumaran | 2010-07-15 00:55:26 +0530 (Thu, 15 Jul 2010) | 9 lines

Merged revisions 82890 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r82890 | senthil.kumaran | 2010-07-15 00:45:23 +0530 (Thu, 15 Jul 2010) | 3 lines

Fix: Issue6853 - Get HTTPS system proxy in Windows.
........
................
/external/python/cpython2/Lib/urllib.py
836a2bba2f067df3b3f8c452b0a1a033295eddc6 14-Jul-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 82890 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r82890 | senthil.kumaran | 2010-07-15 00:45:23 +0530 (Thu, 15 Jul 2010) | 3 lines

Fix: Issue6853 - Get HTTPS system proxy in Windows.
........
/external/python/cpython2/Lib/urllib.py
68f74ba556e348cd3f2b7ca4638e363d6a8625f1 27-Jun-2010 Ronald Oussoren <ronaldoussoren@mac.com> Merged revisions 82284 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r82284 | ronald.oussoren | 2010-06-27 15:59:39 +0200 (Sun, 27 Jun 2010) | 4 lines

Fix for Issue8883: without this patch test_urllib will fail
when there is a bare IP address in the "Bypass proxy settings
for these Hosts & Domains" list on MacOSX.
........
/external/python/cpython2/Lib/urllib.py
b96fbb8d0058efa0b1b8d6adbe875488cb03e4fc 27-Jun-2010 Ronald Oussoren <ronaldoussoren@mac.com> Fix for Issue8883: without this patch test_urllib will fail
when there is a bare IP address in the "Bypass proxy settings
for these Hosts & Domains" list on MacOSX.
/external/python/cpython2/Lib/urllib.py
bfbdefe5392c60d36ec12ffc9b52a156f4610f3e 25-May-2010 R. David Murray <rdmurray@bitdance.com> Issue 8143: sync unquote in urlparse with urllib; add comment about doing so.

unquote is duplicated in the two files to avoid a circular reference.
(This is fixed in Python3.) Updates keep getting made to the public unquote
without fixing the urlparse one, however, so this fix syncs the two
and adds a comment to both to make sure changes are applied to both.
/external/python/cpython2/Lib/urllib.py
af87f9f09f264d64ca564efd6818a1d0d7248a31 17-May-2010 Florent Xicluna <florent.xicluna@gmail.com> Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases.
/external/python/cpython2/Lib/urllib.py
e127e24359d01742fe0aff8fa5bc949f166071ca 17-May-2010 Florent Xicluna <florent.xicluna@gmail.com> Slight style cleanup.
/external/python/cpython2/Lib/urllib.py
9545a23c7ffb35417d451d24cc3b0339627965a7 05-May-2010 Ronald Oussoren <ronaldoussoren@mac.com> In a number of places code still revers
to "sys.platform == 'mac'" and that is
dead code because it refers to a platform
that is no longer supported (and hasn't been
supported for several releases).

Fixes issue #7908 for the trunk.
/external/python/cpython2/Lib/urllib.py
fcfd25bd72cb6b77acd717138104a392f992089f 01-May-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 80675 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r80675 | senthil.kumaran | 2010-05-01 13:31:56 +0530 (Sat, 01 May 2010) | 3 lines

Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string
........
/external/python/cpython2/Lib/urllib.py
1b7f9e53b3dbfb3c97b5e5a768ae4ac4a452f2aa 01-May-2010 Senthil Kumaran <orsenthil@gmail.com> Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string
/external/python/cpython2/Lib/urllib.py
34f9277d5643908b324102edcfa84903f7aab3cd 29-Mar-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 79047 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r79047 | senthil.kumaran | 2010-03-18 17:44:15 +0530 (Thu, 18 Mar 2010) | 3 lines

Fix for Issue8135 - urllib.unquote to support mixed percent escapes
........
/external/python/cpython2/Lib/urllib.py
f3e9b2a996d9f18bf7060e0bff85c02bee47c490 18-Mar-2010 Senthil Kumaran <orsenthil@gmail.com> Fix for Issue8135 - urllib.unquote to support mixed percent escapes
/external/python/cpython2/Lib/urllib.py
a241d0a8a2db3ac1c0bbb61988ed831d605d2814 20-Feb-2010 Senthil Kumaran <orsenthil@gmail.com> Merged revisions 78268 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r78268 | senthil.kumaran | 2010-02-21 03:35:34 +0530 (Sun, 21 Feb 2010) | 3 lines

Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
........
/external/python/cpython2/Lib/urllib.py
18d5a6966980387051e5c1012d9a87a46eda3d34 20-Feb-2010 Senthil Kumaran <orsenthil@gmail.com> Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
/external/python/cpython2/Lib/urllib.py
708c487abe105843a77b556dc3ddcb7a00cfd7cc 07-Feb-2010 Georg Brandl <georg@python.org> Merged revisions 78035,78040,78043,78049-78050,78052-78054 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r78035 | georg.brandl | 2010-02-06 23:44:17 +0100 (Sa, 06 Feb 2010) | 1 line

Fix duplicate import.
........
r78040 | georg.brandl | 2010-02-07 00:08:00 +0100 (So, 07 Feb 2010) | 1 line

Fix a few UnboundLocalErrors in test_long.
........
r78043 | georg.brandl | 2010-02-07 00:12:19 +0100 (So, 07 Feb 2010) | 1 line

Remove duplicate test method.
........
r78049 | georg.brandl | 2010-02-07 00:33:33 +0100 (So, 07 Feb 2010) | 1 line

Fix import/access for some identifiers. _TestSharedCTypes does not seem to be executed?
........
r78050 | georg.brandl | 2010-02-07 00:34:10 +0100 (So, 07 Feb 2010) | 1 line

Fix more unbound locals in code paths that do not seem to be used.
........
r78052 | georg.brandl | 2010-02-07 00:54:04 +0100 (So, 07 Feb 2010) | 1 line

Add missing import when running these tests standalone.
........
r78053 | georg.brandl | 2010-02-07 00:54:43 +0100 (So, 07 Feb 2010) | 1 line

Fix some name errors in Mac modules.
........
r78054 | georg.brandl | 2010-02-07 00:58:25 +0100 (So, 07 Feb 2010) | 1 line

Add missing import.
........
/external/python/cpython2/Lib/urllib.py
84fedf7f061797b1fc95b778e517e6dc86e36db2 06-Feb-2010 Georg Brandl <georg@python.org> No need to assign the results of expressions used only for side effects.
/external/python/cpython2/Lib/urllib.py
48e65f5f6654b107cc5ea04c46c4e0eb6a32def6 06-Feb-2010 Georg Brandl <georg@python.org> Fix duplicate import.
/external/python/cpython2/Lib/urllib.py
ca173e2a0719c174af0195873b67e59abd4230cf 08-Dec-2009 Antoine Pitrou <solipsis@pitrou.net> Fix transient refleaks in test_urllib. Thanks to Florent Xicluna.
/external/python/cpython2/Lib/urllib.py
0299d0d7f03653400a563e69d6d2e062cf47320a 03-Dec-2009 Philip Jenvey <pjenvey@underboss.org> actually close files
/external/python/cpython2/Lib/urllib.py
c1bde6e14dd03b40f11fd3481eb7c40247e27a4d 18-Oct-2009 Ronald Oussoren <ronaldoussoren@mac.com> Merged revisions 75482 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r75482 | ronald.oussoren | 2009-10-18 09:07:00 +0200 (Sun, 18 Oct 2009) | 3 lines

Fix for issue 7149: a regression in 2.6.3 that causes an exception when
trying to detect proxy settings on OSX.
........
/external/python/cpython2/Lib/urllib.py
31802d093f09dbf4be874e72add58b88047faa97 18-Oct-2009 Ronald Oussoren <ronaldoussoren@mac.com> Fix for issue 7149: a regression in 2.6.3 that causes an exception when
trying to detect proxy settings on OSX.
/external/python/cpython2/Lib/urllib.py
78974dff8f6078ef354fc2184265d779255983e5 20-Sep-2009 Ronald Oussoren <ronaldoussoren@mac.com> Merged revisions 74964 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r74964 | ronald.oussoren | 2009-09-20 12:54:07 +0200 (Sun, 20 Sep 2009) | 2 lines

Followup for r74962
........
/external/python/cpython2/Lib/urllib.py
809073bee109f72c939be1a5631d03ede97fbf50 20-Sep-2009 Ronald Oussoren <ronaldoussoren@mac.com> Followup for r74962
/external/python/cpython2/Lib/urllib.py
40617a8eae014941aa6af779d6be0b8d36e1db2c 20-Sep-2009 Ronald Oussoren <ronaldoussoren@mac.com> Merged revisions 74962 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r74962 | ronald.oussoren | 2009-09-20 12:31:22 +0200 (Sun, 20 Sep 2009) | 2 lines

Fix for issue 6851: urllib.urlopen crashes in a thread on OSX 10.6
........
/external/python/cpython2/Lib/urllib.py
51f0633efdc31ae29d5813881a96b0c737fca075 20-Sep-2009 Ronald Oussoren <ronaldoussoren@mac.com> Fix for issue 6851: urllib.urlopen crashes in a thread on OSX 10.6
/external/python/cpython2/Lib/urllib.py
b52c6f8c3906b10446dbe81b29bcdb0a9b8e785a 15-Aug-2009 Senthil Kumaran <orsenthil@gmail.com> Fixing Issue6557. urllib.urlopen will quote the space character within urls.
/external/python/cpython2/Lib/urllib.py
4af40d21737b073b09e491aa4923e2ae637817d7 01-May-2009 Senthil Kumaran <orsenthil@gmail.com> Fix for Issue1648102, based on the MSDN spec: If this parameter specifies the
"<local>" macro as the only entry, this function bypasses any host name that
does not contain a period.
/external/python/cpython2/Lib/urllib.py
7c2867fcb1ade429a41e030585332ea26e3f60e1 21-Apr-2009 Senthil Kumaran <orsenthil@gmail.com> Fix for the Issue918368 - urllib doesn't correct server returned urls
/external/python/cpython2/Lib/urllib.py
5e95e763e1ba51b9bd4153aa016099e183b05434 30-Mar-2009 Senthil Kumaran <orsenthil@gmail.com> Fix for bugs: Issue4675 and Issue4962.
/external/python/cpython2/Lib/urllib.py
373498fc6798549909ca5d11a9e150498562e63b 22-Mar-2009 Benjamin Peterson <benjamin@python.org> Merged revisions 70521 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r70521 | benjamin.peterson | 2009-03-22 12:45:11 -0500 (Sun, 22 Mar 2009) | 1 line

close the file even if an exception occurs #5536
........
/external/python/cpython2/Lib/urllib.py
b364bfe2f406a99a83fc5b1073726ecbaa63f50f 22-Mar-2009 Benjamin Peterson <benjamin@python.org> close the file even if an exception occurs #5536
/external/python/cpython2/Lib/urllib.py
84040dbe8170864ba673321ec7568974bdabf5a4 09-Jan-2009 Kristján Valur Jónsson <kristjan@ccpgames.com> Issue 4336: Let users of HTTPConnection.endheaders() submit a message body to the function if required.
/external/python/cpython2/Lib/urllib.py
2c7470d9513461aaf1af4e655c580d1ece602d2f 21-Sep-2008 Benjamin Peterson <benjamin@python.org> #3879 fix a regression in urllib.getproxies_environment

reviewers: Benjamin, Georg
/external/python/cpython2/Lib/urllib.py
8bb8fa5dd679d1f4086fac4d3181f0985c14006d 02-Jul-2008 Brett Cannon <bcannon@gmail.com> Handle urllib's renaming for Python 3.0:

* Deprecate urllib.urlopen() in favor of urllib2.urlopen() for 3.0.
* Update docs to mention split/rename of the module and deprecation of
urlopen().

Changes to lib2to3 are in a separate commit. Work is for issue #2885.
/external/python/cpython2/Lib/urllib.py
4f1b1ed975fe25170d00559e63f992c9bf8e9b8a 29-May-2008 Facundo Batista <facundobatista@gmail.com> Fixed the semantic of timeout for socket.create_connection and
all the upper level libraries that use it, including urllib2.
Added and fixed some tests, and changed docs correspondingly.
Thanks to John J Lee for the patch and the pusing, :)
/external/python/cpython2/Lib/urllib.py
099646f29a7521318fd8a9753ee4522769488122 18-May-2008 Ronald Oussoren <ronaldoussoren@mac.com> MacOSX: ctypes annotation in implementation of getproxies_macosx_sysconf

getproxies_macosx_sysconf uses ctypes to call SystemConfiguration APIs. This
checkin adds ctypes annotation to specify the right argument types for the
API's that are used.

This is needed to be able to use urllib on a 64-bit system, without
annotations you'd get a hard crash.
/external/python/cpython2/Lib/urllib.py
9dd6b1db5be0293e9d359f7e75614c74b1e5e884 12-May-2008 Ronald Oussoren <ronaldoussoren@mac.com> MacOSX: remove dependency on Carbon package for urllib

This patch removes the dependency on the Carbon package from urllib.
The mac-specific code for getting proxy configuration is now writting in
Python using ctypes and uses the SystemConfiguration framework instead of
InternetConfig. Also provides a mac-specific implementation of proxy_bypass.
/external/python/cpython2/Lib/urllib.py
d5e6cf2b152061cdae0164cef2382086c7638bbc 20-Jan-2008 Georg Brandl <georg@python.org> #1664522: in urllib, don't read non-existing directories in ftp mode,
returning a 0-byte file -- raise an IOError instead.
Original patch from Phil Knirsch.
/external/python/cpython2/Lib/urllib.py
2235011d49bc543ced855804ac9b87c0e98a7b19 20-Jan-2008 Georg Brandl <georg@python.org> #856047: respect the ``no_proxy`` env var when checking for proxies
in urllib and using the other ``_proxy`` env vars.
Original patch by Donovan Baarda.
/external/python/cpython2/Lib/urllib.py
9b0d46db115c10767b240a0a64286214b50fe6ad 20-Jan-2008 Georg Brandl <georg@python.org> #1178141: add addinfourl.code to get http status code from urllib.
/external/python/cpython2/Lib/urllib.py
0f7c25d20f68f5fc7f51e05161b0eeb34b8050de 02-Jan-2008 Kurt B. Kaiser <kbk@shore.net> Issue1177
r58207 and r58247 patch logic is reversed. I noticed this when I
tried to use urllib to retrieve a file which required auth.

Fix that and add a test for 401 error to verify.
/external/python/cpython2/Lib/urllib.py
9b915673b78b62cef82626ab4e580c35ae7ff3e1 24-Sep-2007 Georg Brandl <georg@python.org> #1177: accept 2xx responses for https too, not only http.
/external/python/cpython2/Lib/urllib.py
a1afbf617d0a7dd33632f3666c7e0fab8e88febf 19-Sep-2007 Sean Reifscheider <jafo@tummy.com> issue1177: Ported Facundo's from urllib2 to urllib, accepting 2xx responses.
/external/python/cpython2/Lib/urllib.py
426ea0a8640b2905ba0c0833ff797241dd5b819d 30-Aug-2007 Bill Janssen <janssen@parc.com> This contains a number of things:

1) Improve the documentation of the SSL module, with a fuller
explanation of certificate usage, another reference, proper
formatting of this and that.

2) Fix Windows bug in ssl.py, and general bug in sslsocket.close().
Remove some unused code from ssl.py. Allow accept() to be called on
sslsocket sockets.

3) Use try-except-else in import of ssl in socket.py. Deprecate use of
socket.ssl().

4) Remove use of socket.ssl() in every library module, except for
test_socket_ssl.py and test_ssl.py.
/external/python/cpython2/Lib/urllib.py
711a54ebdeb6ec7e099a8a2a1777161ebc13442d 24-May-2007 Facundo Batista <facundobatista@gmail.com> Added an optional timeout parameter to urllib.ftpwrapper, with tests
(for this and a basic one, because there weren't any). Changed also
NEWS, but didn't find documentation for this function, assumed it
wasn't public...
/external/python/cpython2/Lib/urllib.py
d75f043c3325be6c1fdbc840a5d2358c1e8aa604 17-May-2007 Brett Cannon <bcannon@gmail.com> Remove the gopherlib module. It has been raising a DeprecationWarning since
Python 2.5.

Also remove gopher support from urllib/urllib2. As both imported gopherlib the
usage of the support would have raised a DeprecationWarning.
/external/python/cpython2/Lib/urllib.py
ce55e21c70068315e128980848f86d1d471fc41c 20-Mar-2007 Neal Norwitz <nnorwitz@gmail.com> Try to get test_urllib to pass on Windows by closing the file.
I'm guessing that's the problem. h.getfile() must be called *after*
h.getreply() and the fp can be None.

I'm not entirely convinced this is the best fix (or even correct).
The buildbots will tell us if things improve or not. I don't
know if this needs to be backported (assuming it actually works).
/external/python/cpython2/Lib/urllib.py
027ac24650f0cb48d0391ce34749ddfb29419f57 14-Mar-2007 Georg Brandl <georg@python.org> Bug #767111: fix long-standing bug in urllib which caused an
AttributeError instead of an IOError when the server's response didn't
contain a valid HTTP status line.
(backport from rev. 54376)
/external/python/cpython2/Lib/urllib.py
f66b6039c11fb8f9162867afb7e6574652637a7b 14-Mar-2007 Georg Brandl <georg@python.org> Bug #767111: fix long-standing bug in urllib which caused an
AttributeError instead of an IOError when the server's response didn't
contain a valid HTTP status line.
/external/python/cpython2/Lib/urllib.py
98d1a4d727183d190d921a125f7d3de1cd3025dc 12-Mar-2007 Collin Winter <collinw@gmail.com> Patch #1678662: ftp.python.org does not exist. So the testcode in urllib.py must use a more
stable FTP.
Backported from r54278.
/external/python/cpython2/Lib/urllib.py
071d1ae1362e4444a28c66d9e49e36776efdd3a3 12-Mar-2007 Collin Winter <collinw@gmail.com> Patch #1678662: ftp.python.org does not exist. So the testcode in urllib.py must use a more
stable FTP.
Will backport.
/external/python/cpython2/Lib/urllib.py
5a096e1b100603f5537eca5124be17abacf17743 22-Jan-2007 Georg Brandl <georg@python.org> Use new email module names (#1637162, #1637159, #1637157).
/external/python/cpython2/Lib/urllib.py
0faf90acc43484c934e816bb675bca0007d31c17 19-Dec-2006 Andrew M. Kuchling <amk@amk.ca> [Patch #1617413 from Dug Song] Fix HTTP Basic authentication via HTTPS
/external/python/cpython2/Lib/urllib.py
522785732f09b0be6d4bc06a2782ecda66fc83af 19-Dec-2006 Andrew M. Kuchling <amk@amk.ca> [Patch #1617413 from Dug Song] Fix HTTP Basic authentication via HTTPS
/external/python/cpython2/Lib/urllib.py
ff9e7abac8df84480bcfd7e3ce3a3dd912e69537 27-Oct-2006 Andrew M. Kuchling <amk@amk.ca> [Patch #1574068 by Scott Dial] urllib and urllib2 were using
base64.encodestring() for encoding authentication data.
encodestring() can include newlines for very long input, which
produced broken HTTP headers.

2.4 backport candidate, probably.
/external/python/cpython2/Lib/urllib.py
872dba42538b201b0eed9eeb093183d34c57ab3f 27-Oct-2006 Andrew M. Kuchling <amk@amk.ca> [Patch #1574068 by Scott Dial] urllib and urllib2 were using
base64.encodestring() for encoding authentication data.
encodestring() can include newlines for very long input, which
produced broken HTTP headers.
/external/python/cpython2/Lib/urllib.py
0619a329e822641dff088d9141a7885da882369c 26-Jul-2006 Georg Brandl <georg@python.org> Bug #1459963: properly capitalize HTTP header names.
/external/python/cpython2/Lib/urllib.py
44a118af5043ed6919bd1d0bcfc603f496ae4d7c 30-Apr-2006 Georg Brandl <georg@python.org> Patch #1470976: don't NLST files when retrieving over FTP.
/external/python/cpython2/Lib/urllib.py
c5d0dbd328da9a193c055db96af6fb761617b7fe 09-Apr-2006 Neal Norwitz <nnorwitz@gmail.com> Fix a couple of strings that were no-ops. urllib.open_file was a docstring
in 2.4, so put it back. The string in telnetlib looks like a comment.
/external/python/cpython2/Lib/urllib.py
80bb2bb7eb8ed68609f7533eac6d1e31f45b2843 28-Mar-2006 Georg Brandl <georg@python.org> Revert r43399.
/external/python/cpython2/Lib/urllib.py
f1349cd05d31ba0a925d9931a7c437a9650c6488 28-Mar-2006 Georg Brandl <georg@python.org> Bug #1459963: urllib2 now normalizes HTTP header names correctly
with title().
/external/python/cpython2/Lib/urllib.py
1c168d8eebd927d95f069848568262ebc0b90cd6 26-Mar-2006 Georg Brandl <georg@python.org> Bug #1457264: parse http://host?query correctly in urllib
/external/python/cpython2/Lib/urllib.py
1f63670a2a0e66c049c2cfe8a2ec62a663e5c754 19-Feb-2006 Georg Brandl <georg@python.org> Patch #1426648: urllib proxy_bypass broken
/external/python/cpython2/Lib/urllib.py
92037a15a975092d81b6af5933aba985e731cdb7 24-Jan-2006 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/urllib.py
3e86595280a9714354372f91108be4d184da8a5f 24-Jan-2006 Martin v. Löwis <martin@v.loewis.de> Patch #1349118: urllib2 now supports user:pass@ style proxy
specifications, raises IOErrors when proxies for unsupported protocols
are defined, and uses the https proxy on https redirections.
/external/python/cpython2/Lib/urllib.py
c0b24734e050fbddf6627be3f2dfb9860e8e5aeb 26-Dec-2005 Georg Brandl <georg@python.org> Bug #649974: make docstrings for url2pathname consistent
/external/python/cpython2/Lib/urllib.py
1f663574ee154dfc95b883747137040f51ea7ef6 26-Nov-2005 Georg Brandl <georg@python.org> bug #1365984: urllib and data: URLs. Problem was that cStringIO objects cannot be assigned attributes on the fly.
/external/python/cpython2/Lib/urllib.py
4b0f20def3528469f3579445783d2d5db3f50c48 15-Oct-2005 Raymond Hettinger <python@rcn.com> Teach unquote() to handle unicode inputs
/external/python/cpython2/Lib/urllib.py
cf6b6326e5844717954f9447ef1e307111f546d2 10-Sep-2005 Raymond Hettinger <python@rcn.com> Corrected version of 1.170
/external/python/cpython2/Lib/urllib.py
2bdec7bfb0b200db64c7170c0aebdf2aa5356167 10-Sep-2005 Raymond Hettinger <python@rcn.com> Revert 1.170. Add tests.
/external/python/cpython2/Lib/urllib.py
803ce801ab84c2e11a99dc160512cd905c0b6520 10-Sep-2005 Raymond Hettinger <python@rcn.com> Simplify and speed-up unquote().
/external/python/cpython2/Lib/urllib.py
957b1266492877d97a790a5698a9492512e5b8cd 10-Sep-2005 Raymond Hettinger <python@rcn.com> Simplify and speed-up quote_plus().
/external/python/cpython2/Lib/urllib.py
199d2f79972431e1d47eaaea8cdb6cab78669d14 10-Sep-2005 Raymond Hettinger <python@rcn.com> SF #1285086: urllib.quote is too slow

Simplify and speed-up quote() function.
/external/python/cpython2/Lib/urllib.py
5a650a253c89bf6a491fc67c441530969ee4bda8 26-Aug-2005 Georg Brandl <georg@python.org> patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieve
/external/python/cpython2/Lib/urllib.py
b925602f169d47270a064cf9eb03e21706ed25c3 24-Aug-2005 Georg Brandl <georg@python.org> Patch [ 1062060 ] fix for 1016880 urllib.urlretrieve silently truncates dwnld
/external/python/cpython2/Lib/urllib.py
a617271dbd150549b021a5161d009869ad62f7b2 31-Dec-2004 Raymond Hettinger <python@rcn.com> Use cStringIO where available.
/external/python/cpython2/Lib/urllib.py
3dd9e461618b0964312fa3c649cf03c7bfe27827 11-Oct-2004 Anthony Baxter <anthonybaxter@gmail.com> Added a usegmt flag to email.Utils.formatdate - this allows it to be
used to replace rfc822.formatdate for protocols like HTTP (where 'GMT' must
be the timezone string).
/external/python/cpython2/Lib/urllib.py
182b5aca27d376b08a2904bed42b751496f932f3 18-Jul-2004 Tim Peters <tim.peters@gmail.com> Whitespace normalization, via reindent.py.
/external/python/cpython2/Lib/urllib.py
11d9b0628396749eaf9bc7f8a0e37f0cd46d75bf 16-Jul-2004 Jack Jansen <jack.jansen@cwi.nl> Fix for #779167: use InternetConfig proxy settings on MacOSX (in addition
to unix-style).
/external/python/cpython2/Lib/urllib.py
aaeffaf01e385d9a510f607b0b101ae6ba7dba5b 24-Mar-2004 Brett Cannon <bcannon@gmail.com> Replace sequential split/join calls on strings with a single replace call.
Thanks Andrew Gaul.
/external/python/cpython2/Lib/urllib.py
69200fa85b8825c52f05d54f1d6d3b58ea7fec6c 23-Mar-2004 Brett Cannon <bcannon@gmail.com> Replace code in urllib for basejoin (undocumented) with urlparse.urljoin .
Test suites for urllib and urlparse run with each other's function to verify
correctness of replacement and both test suites pass.

Bumped urllib's __version__ attribute up a minor number.
/external/python/cpython2/Lib/urllib.py
70a6b49821a3226f55e9716f32d802d06640cb89 12-Feb-2004 Walter Dörwald <walter@livinglogic.de> Replace backticks with repr() or "%r"

From SF patch #852334.
/external/python/cpython2/Lib/urllib.py
ff638ea6dbc7ff6819a083f9a9562a8099accade 29-Aug-2003 Andrew M. Kuchling <amk@amk.ca> [Bug #776542] open_https() generates a bad Authorization header because it calls .putheader() wrongly. Reported by Steffen Ries.
/external/python/cpython2/Lib/urllib.py
fa19f7c20d14d34dfa58bfb9b4055555e46fd437 16-May-2003 Guido van Rossum <guido@python.org> More fixes according to SF 549151:

- When redirecting, always use GET. This is common practice and
more-or-less sanctioned by the HTTP standard.

- Add a handler for 307 redirection, which becomes an error for POST,
but a regular redirect for GET and HEAD.
/external/python/cpython2/Lib/urllib.py
024aaa1bfe27cbc47c2a7f88c21c9bb1b6605191 24-Apr-2003 Raymond Hettinger <python@rcn.com> SF Patch 549151: urllib2 POSTs on redirect
(contributed by John J Lee)
/external/python/cpython2/Lib/urllib.py
7d618c731c4505ab92f085f97faa475ac3ad72d4 24-Apr-2003 Brett Cannon <bcannon@gmail.com> Fix docstring for URLOpener.retrieve() in regards to opening a local file
/external/python/cpython2/Lib/urllib.py
42182ebaf6387371c238d2a3484e7f1e085c9d1c 09-Mar-2003 Raymond Hettinger <python@rcn.com> SF 698520: Iterator for urllib.URLOpener
Contributed by Brett Cannon.
/external/python/cpython2/Lib/urllib.py
68468eba635570400f607e140425a222018e56f9 27-Feb-2003 Guido van Rossum <guido@python.org> Get rid of many apply() calls.
/external/python/cpython2/Lib/urllib.py
3bd6fde4e36bac98d9dab6060bf8791ca99929b5 11-Oct-2002 Jeremy Hylton <jeremy@alum.mit.edu> Use fdopen() to create file from fd.
/external/python/cpython2/Lib/urllib.py
4ef1103b7166d5bd09303c8bf0de988c8015fecf 12-Sep-2002 Jack Jansen <jack.jansen@cwi.nl> When testing for localhost/ first map to lower case. Spotted by Skip.
/external/python/cpython2/Lib/urllib.py
3ae2dc5e5ea7521426ce3f34afa18147435ede5c 12-Sep-2002 Jack Jansen <jack.jansen@cwi.nl> Treat file://localhost/ as local too (same as file:/ and file:///).
Fixes #607789, bugfix candidate.
/external/python/cpython2/Lib/urllib.py
f2e45dd9dde5fa45afeb2bb42660a5a1a2d199d5 18-Aug-2002 Raymond Hettinger <python@rcn.com> Modify splituser() method to allow an @ in the userinfo field.
Jeremy reported that this is not allowed by RFC 2396; however,
other tools support unescaped @'s so we should also.

Apply SF patch 596581 closing bug 581529.
/external/python/cpython2/Lib/urllib.py
3b0a3293c369f3c3f4753e3cb9172cb4e242af76 09-Aug-2002 Guido van Rossum <guido@python.org> Massive changes from SF 589982 (tempfile.py rewrite, by Zack
Weinberg). This changes all uses of deprecated tempfile functions to
the recommended ones.
/external/python/cpython2/Lib/urllib.py
60e04cd317201f43b612e99444eac297fae0ea40 11-Jun-2002 Neal Norwitz <nnorwitz@gmail.com> Fix SF #565414, FancyURLopener() needs to support **kwargs
since the URLopener base class does and **kwargs are used in urlopen.
/external/python/cpython2/Lib/urllib.py
65230a2de758fbde57b3893c402436ae0202ada3 03-Jun-2002 Walter Dörwald <walter@livinglogic.de> Remove uses of the string and types modules:

x in string.whitespace => x.isspace()
type(x) in types.StringTypes => isinstance(x, basestring)
isinstance(x, types.StringTypes) => isinstance(x, basestring)
type(x) is types.StringType => isinstance(x, str)
type(x) == types.StringType => isinstance(x, str)
string.split(x, ...) => x.split(...)
string.join(x, y) => y.join(x)
string.zfill(x, ...) => x.zfill(...)
string.count(x, ...) => x.count(...)
hasattr(types, "UnicodeType") => try: unicode except NameError:
type(x) != types.TupleTuple => not isinstance(x, tuple)
isinstance(x, types.TupleType) => isinstance(x, tuple)
type(x) is types.IntType => isinstance(x, int)

Do not mention the string module in the rlcompleter docstring.

This partially applies SF patch http://www.python.org/sf/562373
(with basestring instead of string). (It excludes the changes to
unittest.py and does not change the os.stat stuff.)
/external/python/cpython2/Lib/urllib.py
10ff706e2788a7c7ef9f8ea0108a5ede625fedad 02-Jun-2002 Raymond Hettinger <python@rcn.com> Replaced boolean tests with is None.
/external/python/cpython2/Lib/urllib.py
54f0222547b1e92cd018ef132307a6f793dc9505 01-Jun-2002 Raymond Hettinger <python@rcn.com> SF 563203. Replaced 'has_key()' with 'in'.
/external/python/cpython2/Lib/urllib.py
4b46c0a15f1bdb8987ce78c0ded40dbc92b6e03e 24-May-2002 Guido van Rossum <guido@python.org> Don't require Unicode support.
/external/python/cpython2/Lib/urllib.py
a2da305211c23fc7090f95540cc1b793e474f9c1 15-Apr-2002 Guido van Rossum <guido@python.org> Fix from SF bug #541980 (Jacques A. Vidrine).

When os.stat() for a file raises OSError, turn it into IOError per
documentation.

Bugfix candidate.
/external/python/cpython2/Lib/urllib.py
df6eca7eb7b6ac1b00ba524f1d9565881a93b9ea 04-Apr-2002 Fred Drake <fdrake@acm.org> Support manual proxy configuration for simple urlopen() operations.
This change is similar to the supplied patch, but does not save the opener
when a proxy configuration is specified.
This closes SF patch #523415.
/external/python/cpython2/Lib/urllib.py
64e5aa93919bb0ffd95a11a5da7bac64faaf9faf 02-Apr-2002 Guido van Rossum <guido@python.org> Fix for a bug in the fix for SF bug 503031. This time the OP verified
that it works.

Bugfix candidate (this and the previous checkin, obviously).
/external/python/cpython2/Lib/urllib.py
b955d6c41e80806c8390dba47323ef7fc41f05aa 01-Apr-2002 Guido van Rossum <guido@python.org> Hopeful fix for SF bug 503031: urllib.py: open_http() host problem.

I really can't test this, but from reading the discussion in that bug
report, it's likely that this works. It may also close a whole bunch
of other bug reports related to urllib and proxies on Windows, but who
knows.
/external/python/cpython2/Lib/urllib.py
aad1849e25cf329b1c3f28908ae5abd4b1a1f460 26-Mar-2002 Neal Norwitz <nnorwitz@gmail.com> time and socket were already imported in the module, no need to re-import
/external/python/cpython2/Lib/urllib.py
92b48b739f20003086a72edde7fc708af955c49c 22-Mar-2002 Walter Dörwald <walter@livinglogic.de> use stat attributes instead of tuple entries
and remove the unneccessary "import stat" statement.
/external/python/cpython2/Lib/urllib.py
56a42356b7c1e531c30ad5e9a22bd3626e5ddda0 18-Mar-2002 Andrew M. Kuchling <amk@amk.ca> To make 'urllib.py -t' run again, change FTP URL to a file that actually
exists.
/external/python/cpython2/Lib/urllib.py
bc9bc187aa9e2b18a2e3d49aa743e37cdaa1bb18 11-Feb-2002 Neal Norwitz <nnorwitz@gmail.com> SF #515024 remove unused variable
/external/python/cpython2/Lib/urllib.py
b931bf3c55613a58cf403f7e7b04a5c69cfd0763 08-Dec-2001 Guido van Rossum <guido@python.org> SF patch #490515 (Joe A) urllib.open_https() protocol issue

open_http():
In urllib.py library module, URLopener.open_https()
returns a class instance of addinfourl() with its
self.url property missing the protocol.

Instead of "https://www.someurl.com", it becomes
"://www.someurl.com".
/external/python/cpython2/Lib/urllib.py
c680ae8002e955ef616741ae59338f0cde0f2ff8 13-Oct-2001 Fred Drake <fdrake@acm.org> Added missing parameter in call to http_error_default();
reported by Neal Norwitz.
/external/python/cpython2/Lib/urllib.py
6d8c1aabff765d4958132f750a968769e7cece13 27-Aug-2001 Jeremy Hylton <jeremy@alum.mit.edu> Add content-type header to ftp URLs (SF patch #454553)

Modify rfc822.formatdate() to always generate English names,
regardless of locale. This is required by RFC 1123.

In open_local_file() of urllib and urllib2, use new formatdate() from
rfc822.
/external/python/cpython2/Lib/urllib.py
88e0b5bee0e69b628a9358c987bf49ac885d1c21 23-Aug-2001 Guido van Rossum <guido@python.org> SF patch #454553 by Walter Dörwald: auto-guess content-type header for
ftp urls.
/external/python/cpython2/Lib/urllib.py
58682b7fe53d9bf7fefea59413d47ddd3c9a7d5f 11-Aug-2001 Martin v. Löwis <martin@v.loewis.de> Only catch the errors that can actually occur, as reported in bug #411881.
/external/python/cpython2/Lib/urllib.py
ab9ba27dc066adc6423ea137b9481cf524d10ffd 09-Aug-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/urllib.py
55c12d4d5bd6adc8e60d074fbb5f1d666c87422c 09-Aug-2001 Tim Peters <tim.peters@gmail.com> SF patch #403640: incomplete proxy handling in URLLIB
Look specific to Windows. Don't know whether it works.
/external/python/cpython2/Lib/urllib.py
f0713d3f4d1d9fbd3cc10877822e824103f7affa 09-Aug-2001 Guido van Rossum <guido@python.org> SF Patch #420725 by Walter Doerwald:

For local files urllib.py doesn't return the MIME
headers that the documentation says it does:

http://www.python.org/doc/current/lib/module-
urllib.html#l2h-2187 states that "When the method is
local-file, returned headers will include a Date
representing the file's last-modified time, a Content-
Length giving file size, and a Content-Type containing
a guess at the file's type"

But in Python 2.1 the only header that gets returned
is the Content-Type:

>>> import urllib
>>> f = urllib.urlopen("gurk.txt")
>>> f.info().headers
['Content-Type: text/plain\n']
/external/python/cpython2/Lib/urllib.py
ec3dfdee6a09e1ad8d4e319876d0cf7691397245 04-Jul-2001 Fred Drake <fdrake@acm.org> Only write out one blank line before the request data.
This closes SF patch #419459.
/external/python/cpython2/Lib/urllib.py
b8bf3bece2e30b9402fc3c48c134c59903952c21 15-Apr-2001 Guido van Rossum <guido@python.org> Fix SF bug [ #416231 ] urllib.basejoin fails to apply some ../.
Reported by Juan M. Bello Rivas.
/external/python/cpython2/Lib/urllib.py
5d87d4729596b0c385e3fa50581ee100396cae2d 09-Apr-2001 Moshe Zadka <moshez@math.huji.ac.il> fixing 408085 - redirect from https becomes http
Even though relative redirects are illegal, they are common
urllib treated every relative redirect as though it was to http,
even if the original was https://
As long as we're compensating for server bugs, might as well do
it properly.
/external/python/cpython2/Lib/urllib.py
44d5e0c418b7ec5bc52d9b06a7ad730c82f5bb61 13-Mar-2001 Skip Montanaro <skip@pobox.com> updated __all__ to include several other names
/external/python/cpython2/Lib/urllib.py
282fed1363894711b3ef2940edd92240008580aa 05-Mar-2001 Jack Jansen <jack.jansen@cwi.nl> Grr, splittag was also missing from __all__.
/external/python/cpython2/Lib/urllib.py
49985638fa33230fdf1ef95613d918fe5e385f5e 05-Mar-2001 Jack Jansen <jack.jansen@cwi.nl> Added url2pathname and pathname2url to __all__.
/external/python/cpython2/Lib/urllib.py
d74fb6b12a9a53ce09648484076c84e727561612 02-Mar-2001 Guido van Rossum <guido@python.org> RISCOS changes by dschwertberger.
/external/python/cpython2/Lib/urllib.py
40fc16059f04ee8fda0b5956cc4883eb21ca8f8c 01-Mar-2001 Skip Montanaro <skip@pobox.com> final round of __all__ lists (I hope) - skipped urllib2 because Moshe may be
giving it a slight facelift
/external/python/cpython2/Lib/urllib.py
85ba673b0a8fa8123bfe2d0434fe35d7f3cee68d 28-Feb-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/urllib.py
e99bd17ed6ffbb7a6deee9b80b83ce6a9e4e8b10 27-Feb-2001 Moshe Zadka <moshez@math.huji.ac.il> Fixing bug #227562 by calling URLopener.http_error_default when
an invalid 401 request is being handled.
/external/python/cpython2/Lib/urllib.py
c3e11d65691bb4af578df87235914b0202c6c1e2 15-Feb-2001 Skip Montanaro <skip@pobox.com> provide simple recovery/escape from apparent redirect recursion. If the
number of entries into http_error_302 exceeds the value set for the maxtries
attribute (which defaults to 10), the recursion is exited by calling
the http_error_500 method (or if that is not defined, http_error_default).
/external/python/cpython2/Lib/urllib.py
658cba6706eb4a2ad8b3e235cf0db9fe1c8e9e6b 09-Feb-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/urllib.py
14f1ad4a949830998435f6cb3860e01046fa0da1 28-Jan-2001 Skip Montanaro <skip@pobox.com> allow first param urlencode to be a sequence of two-element tuples - in this
case, the order of parameters in the output matches the order of the inputs.
/external/python/cpython2/Lib/urllib.py
a5d23a19e6685f7c754e459d4442242bac8dc84d 20-Jan-2001 Skip Montanaro <skip@pobox.com> modify urlencode so sequences in the dict are treated as multivalued
parameters. This closes the code part of patch 103314.
/external/python/cpython2/Lib/urllib.py
e27a7b80748c902ce956287f14857666db523c4b 19-Jan-2001 Guido van Rossum <guido@python.org> Anonymous SF bug 129288: "The python 2.0 urllib has %%%x as a format
when quoting forbidden characters. There are scripts out there that
break with lower case, therefore I guess %%%X should be used."

I agree, so am fixing this.
/external/python/cpython2/Lib/urllib.py
afc4f0413ae7c307207772373937b0eb1e0a645b 15-Jan-2001 Guido van Rossum <guido@python.org> - Make sure to quote the username and password (SF patch #103236 by
dogfort).

- Don't drop the data argument when calling open_https() from the
authentication error handler.
/external/python/cpython2/Lib/urllib.py
e119006e7dc0df0a5ff6b60764b2ce3cd9477688 15-Jan-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization. Top level of Lib now fixed-point for reindent.py!
/external/python/cpython2/Lib/urllib.py
b2a0a838e08b6d4e1d4ceffb7df90e121a70972d 08-Jan-2001 Moshe Zadka <moshez@math.huji.ac.il> Fixed bug which caused HTTPS not to work at all with string URLs
/external/python/cpython2/Lib/urllib.py
b2493f855a7319ce0748bfb965253cad9c9f5a2c 15-Dec-2000 Guido van Rossum <guido@python.org> Get rid of string functions, except maketrans() (which is *not*
obsolete!).

Fix a bug in ftpwrapper.retrfile() where somehow ftplib.error_perm was
assumed to be a string. (The fix applies str().)

Also break some long lines and change the output from test() slightly.
/external/python/cpython2/Lib/urllib.py
1d99433a58c8c69caa734acb884f274663885a17 03-Dec-2000 Martin v. Löwis <martin@v.loewis.de> Convert Unicode strings to byte strings before passing them into specific
protocols. Closes bug #119822.
/external/python/cpython2/Lib/urllib.py
d52755f41c1545a1e6dcc0f38ebed0a1fd1fa5e8 03-Oct-2000 Jeremy Hylton <jeremy@alum.mit.edu> Provide a clearer error message when urlopen fails because of an
invalid proxy setting.

Minor change to call of unknown_url; always pass data argument
explicitly since data defaults to None.

PEP 42: Add as a feature that urllib handle proxy setting that contain
only the host and port of the proxy.
/external/python/cpython2/Lib/urllib.py
b49f88bfc122440e6b056b3c051ac3f928a1df92 24-Sep-2000 Fredrik Lundh <fredrik@pythonware.com> - Improved handling of win32 proxy settings (addresses bug #114256).

The earlier code assumed "protocol=host;protocol=host;..." or "host",
but Windows may also use "protocol=host" (just one entry), as well as
"protocol://host". This code needs some more work, so I'll leave the
bug open for now.
/external/python/cpython2/Lib/urllib.py
7ae51bf82d836f036376671c58882b058acd3e2e 14-Sep-2000 Jeremy Hylton <jeremy@alum.mit.edu> Remove "," from the list of always_safe characters. It is a reserved
character according to RFC 2396. Add some text to quote doc string
that explains the quoting rules better.

This closes SF Bug #114427.

Add _fast_quote operation that uses a dictionary instead of a list
when the standard set of safe characters is used.
/external/python/cpython2/Lib/urllib.py
6102e29df28fa0707752875e23445ef1d84d5b10 31-Aug-2000 Jeremy Hylton <jeremy@alum.mit.edu> fixes bug #111951
applies patch #101369 by Moshe Zadke
use explicit list of always safe characters instead of string.letters
add test case
/external/python/cpython2/Lib/urllib.py
d7b86f00563e5039bf527240f15936b47923fff4 25-Aug-2000 Sjoerd Mullender <sjoerd@acm.org> Pass data on to retrieve method.
Don't people *test* their changes?
/external/python/cpython2/Lib/urllib.py
ba3113807dc63e827463d641c1b4511b064d3c88 24-Aug-2000 Guido van Rossum <guido@python.org> Promote the server version from a local variable to a class variable,
so that a subclass can override it.

This partly addresses Bug #112634 -- but the documentation is still
wrong, since it suggests that you can set self.version *after* calling
the base class __init__. In fact it must be done *before*.

I'll fix that too.
/external/python/cpython2/Lib/urllib.py
316a793a58ae91cba312bd28649bd0853b62fa0d 24-Aug-2000 Fred Drake <fdrake@acm.org> Randall Hopper <aa8vb@yahoo.com>>:
Make it easier to use HTTP POST with urlretrieve().
/external/python/cpython2/Lib/urllib.py
79f1c1778d328b42e67e1480d3a2349e9408d634 22-Aug-2000 Skip Montanaro <skip@pobox.com> * added doc strings to urlopen and unquote_plus
* fixed type in doc string for quote
/external/python/cpython2/Lib/urllib.py
567ca8e732a75682adfdca08daaf2afa59582ad9 21-Aug-2000 Fred Drake <fdrake@acm.org> Patch from Paul Schreiber <paul@commerceflow.com>:

Patch description
-----------------
This addresses four issues:

(1) usernames and passwords in urls with special characters are now
decoded properly. i.e. http://foo%2C:bar@www.whatever.com/

(2) Basic Auth support has been added to HTTPS, like it was in HTTP.

(3) Version 1.92 sent the POSTed data, but did not deal with errors
(HTTP responses other than 200) properly. HTTPS now behaves the
same way HTTP does.

(4) made URL-checking beahve the same way with HTTPS as it does with
HTTP (changed == to !=).
/external/python/cpython2/Lib/urllib.py
4f570b9239eff845c2a5298d8178cb8e01122ac2 26-Jul-2000 Mark Hammond <mhammond@skippinet.com.au> Patch #100873 - Use registry to find proxies for urllib on Win32

Note that this patch looks worse than it is - an existing function (getproxies() for all platforms other than Win/Mac) has been moved, renamed and indentation changed, but the body of that function is identical. Windows now allows the environment variables to override the registry.
/external/python/cpython2/Lib/urllib.py
7e47402264cf87b9bbb61fc9ff610af08add7c7b 16-Jul-2000 Thomas Wouters <thomas@python.org> Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").

There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
/external/python/cpython2/Lib/urllib.py
9e94afd18daec70460ff52b4a75bde31e60347b4 01-Jul-2000 Fred Drake <fdrake@acm.org> Fix bug #314, reported by Craig Allen <cba@mediaone.net>:
splittype(): Always lower-case the URL scheme; these are supposed to be
normalized according to RFC 1738 anyway.
/external/python/cpython2/Lib/urllib.py
7ad47923077691c2fd32a721fe9048fcf310878e 10-Jun-2000 Andrew M. Kuchling <amk@amk.ca> Comment out an apparent debug print
/external/python/cpython2/Lib/urllib.py
c580dae6da60aa76e9b885ddbf7a9833aa61c147 24-May-2000 Guido van Rossum <guido@python.org> Fix a problem reported by Oleg Broytmann, who complains that very
often, ftp URLs hang in the final close. Further analysis suggests
that this is because the close hook in addclosehook() calls the hook
before acually closing the connection. The hook, in this case, waits
for the '226 Transfer complete' status from the server on the command
socket. However, more and more ftp servers only send this status when
the data socket has actually been closed -- causing a deadlock.

The fix is simple: in addclosehook.close(), call addbase.close()
*before* calling the closehook.
/external/python/cpython2/Lib/urllib.py
43c5af026fbb004b115358e943aca21432d7a76a 24-Apr-2000 Andrew M. Kuchling <amk@amk.ca> Fix to previous patch: send the request data when it's provided
/external/python/cpython2/Lib/urllib.py
141e9894b7818daa06773d50705d7c64d298f9d8 23-Apr-2000 Andrew M. Kuchling <amk@amk.ca> Fixed bug reported by JP Calderone: https:// URL's didn't work.
The fix also adds support for POSTing to an https URL
/external/python/cpython2/Lib/urllib.py
e7b146fb3bdca62a0d5ecc06dbf3348e5a4fe757 04-Feb-2000 Guido van Rossum <guido@python.org> The third and final doc-string sweep by Ka-Ping Yee.

The attached patches update the standard library so that all modules
have docstrings beginning with one-line summaries.

A new docstring was added to formatter. The docstring for os.py
was updated to mention nt, os2, ce in addition to posix, dos, mac.
/external/python/cpython2/Lib/urllib.py
3c8baedaf8c69bd92f06a7de5f16cde19a9beb55 02-Feb-2000 Guido van Rossum <guido@python.org> Sjoerd Mullender writes:

Fixed a TypeError: not enough arguments; expected 4, got 3.
When authentication is needed, the default http_error_401 method calls
retry_http_basic_auth. The default version of that method expected a
data argument which wasn't provided, so now we provide the argument if
it was given and we also made the data argument optional.

Also changed other calls where data was optional to not pass data if
it was not passed to the calling method (in line with other similar
occurances).
/external/python/cpython2/Lib/urllib.py
09c8b6c3e42313fe336ee4028a5d0e61605a3670 07-Dec-1999 Guido van Rossum <guido@python.org> OpenSSL support. This is based on patches for a version of SSLeay by
Brian E Gallew, which were improved and adapted to OpenSSL 0.9.4 by
Laszlo Kovacs of HP. Both have kindly given permission to include
the patches in the Python distribution. Final formatting by GvR.
/external/python/cpython2/Lib/urllib.py
5e006a3cc32b26dcb9dce4dd6875c72fc815c108 18-Aug-1999 Guido van Rossum <guido@python.org> Patches by Michael Reilly to correctly deal with ftp URLs of the form
ftp://user@host//root/path: the double slash in the pathname means to
go to the root directory even if the initial directory isn't the root.
/external/python/cpython2/Lib/urllib.py
3427c1f71b584884142bc764be7b4f6b3efde3da 02-Jul-1999 Guido van Rossum <guido@python.org> Sjoerd Mullender:

In splithost, accept empty host part in URLs. This is required for
file URLs that can have an empty host part. For such URLs, we should
not return the initial 2 slashes as part of the file name.
/external/python/cpython2/Lib/urllib.py
336a201d4fed1b800029f302653e851a430a166b 24-Jun-1999 Guido van Rossum <guido@python.org> Sjoerd Mullender writes:

Urllib makes the URL of the opened file available through the geturl
method of the returned object. For local files, this consists of
file: plus the name of the file. This results in an invalid URL if
the file name was relative. This patch fixes this so that the
returned URL is just a relative URL in that case. When the file name
is absolute, the URL returned is of the form file:///absolute/path.

[I guess that a URL of the form "file:foo.html" is illegal... GvR]
/external/python/cpython2/Lib/urllib.py
0dee4ee0f8b3b1cb6283b2453e75bcf71f20a367 09-Jun-1999 Guido van Rossum <guido@python.org> Updated lagging version#. Also added some comments about how quote()
and quote_plus() can be optimized tenfold.
/external/python/cpython2/Lib/urllib.py
3527f594573c56756ee8ed8cc248a101fd8e2e7a 29-Mar-1999 Guido van Rossum <guido@python.org> Hack so that if a 302 or 301 redirect contains a relative URL, the
right thing "just happens" (basejoin() with old URL).
/external/python/cpython2/Lib/urllib.py
3764595c980ccba821a29947dbef14947b71825e 15-Mar-1999 Guido van Rossum <guido@python.org> Yet another patch by Sjoerd Mullender:

Don't convert URLs to URLs using pathname2url.
/external/python/cpython2/Lib/urllib.py
367ac80d3ba72223865003cb24d4ff5abea8400c 12-Mar-1999 Guido van Rossum <guido@python.org> From: Sjoerd Mullender

The filename to URL conversion didn't properly quote special
characters.
The URL to filename didn't properly unquote special chatacters.
/external/python/cpython2/Lib/urllib.py
29aab7582f635e7041631b6e540c3b454c37450e 09-Mar-1999 Guido van Rossum <guido@python.org> open_http also had the 'data is None' test backwards. don't call with the
extra argument if data is None.
/external/python/cpython2/Lib/urllib.py
b30f52a4715407d7be78569123b7379dc47299cb 25-Feb-1999 Jeremy Hylton <jeremy@alum.mit.edu> http_error had the 'data is None' test backwards. don't call with the
extra argument if data is None.
/external/python/cpython2/Lib/urllib.py
f90b002e31f245286e34209a96e13d1d5e281c76 25-Feb-1999 Jeremy Hylton <jeremy@alum.mit.edu> change indentation from 8 spaces to 4 spaces
/external/python/cpython2/Lib/urllib.py
547c3f1c13d8f220bd665666cdda8b30f0d40bfa 25-Feb-1999 Jeremy Hylton <jeremy@alum.mit.edu> pleasing the tabnanny
/external/python/cpython2/Lib/urllib.py
dbc8364e1f87af2da46a1b4759d1e2811bd2b640 24-Feb-1999 Jeremy Hylton <jeremy@alum.mit.edu> When performing a POST request, i.e. when the second argument to
urlopen is used to specify form data, make sure the second argument is
threaded through all of the http_error_NNN calls. This allows error
handlers like the redirect and authorization handlers to properly
re-start the connection.
/external/python/cpython2/Lib/urllib.py
4505895e68b1866de819566b87de44543993d5cf 22-Feb-1999 Guido van Rossum <guido@python.org> As Des Barry points out, we need to call pathname2url(file) in two
calls to addinfourl() in open_file().
/external/python/cpython2/Lib/urllib.py
ed52a20c6eb451cd8827e3901f115709980edaae 16-Feb-1999 Guido van Rossum <guido@python.org> In open_ftp(), check that retrlen is not None before using it in a %d format!
/external/python/cpython2/Lib/urllib.py
33add0a95aa6c5ba5dbb8cae7b51a253209ecd6f 18-Dec-1998 Guido van Rossum <guido@python.org> Sjoerd Mullender:

File names with "funny" characters get translated wrong by
pathname2url (any variety). E.g. the (Unix) file "/ufs/sjoerd/#tmp"
gets translated into "/ufs/sjoerd/#tmp" which, when interpreted as a
URL is file "/ufs/sjoerd/" with fragment ID "tmp".

Here's an easy fix. (An alternative fix would be to change the
various implementations of pathname2url and url2pathname to include
calls to quote and unquote.

[The main problem is with the normal use of URLs:
url = url2pathname(file)
transmit url
url, tag = splittag(url)
urlopen(url)
]

In addition, this patch fixes some uses of unquote:
- the host part of URLs should be unquoted
- the file path in the FTP URL should be unquoted before it is split
into components.
- because of the latter, I removed all unquoting from ftpwrapper,
and moved it to the caller, but that is not essential
/external/python/cpython2/Lib/urllib.py
9ab96d40eb416deaf45d7d58320b6658a14750ae 28-Sep-1998 Guido van Rossum <guido@python.org> Changes by Eric Raymond:

1. Generate a correct Content-Length header visible through the info() method
if a request to open an FTP URL gets a length in the response to RETR.

2. Take a third argument to urlretrieve() that makes it possible to progress-
meter an urlretrieve call (this is what I needed the above change for).
See the second patch band below for details.

3. To avoid spurious errors, I commented out the gopher test. The target
document no longer exists.
/external/python/cpython2/Lib/urllib.py
4163e708edbe17c813c25358a34bbfa6372cf050 06-Aug-1998 Guido van Rossum <guido@python.org> On the Mac, use Internet Config to find the proxies (Jack Jansen).

Also added two XXX comments about lingering thread unsafeness.
/external/python/cpython2/Lib/urllib.py
810a3396d130eda7d3e2be08966b40949757598e 22-Jul-1998 Guido van Rossum <guido@python.org> Speed up the implementation of quote().

Fix the implementation of quote_plus(). (It wouldn't treat '+' in the
original data right.)

Add urlencode(dict) which is handy to create the data for sending a
POST request with urlopen().
/external/python/cpython2/Lib/urllib.py
c94f16f15669faf494a99961334ebbaac88c54d9 29-Jun-1998 Guido van Rossum <guido@python.org> Oops! Of course, Tim is right -- when the item is not a hex number,
the '%' should be put back in.
/external/python/cpython2/Lib/urllib.py
52e86ad05b3b0471bb56a66c29c6a8c6d864d9a2 29-Jun-1998 Guido van Rossum <guido@python.org> Speed-up unquote(), inspired by post from Daniel Walton.
/external/python/cpython2/Lib/urllib.py
2349015a878adc203613257fa9578dbd921ec573 25-Jun-1998 Guido van Rossum <guido@python.org> Rewrite the (test) main program so that when used as a script, it can
retrieve one or more URLs to stdout. Use -t to run the self-test.
/external/python/cpython2/Lib/urllib.py
ae9ee7329d350b57a2d7b835e4e77a00b67e21b6 12-Jun-1998 Guido van Rossum <guido@python.org> Use the getpass module instead of having platform-specific echo on/off
code here.
/external/python/cpython2/Lib/urllib.py
e0c0da98d85a343ec0578ce8ce690fb952118a0b 05-May-1998 Guido van Rossum <guido@python.org> Patches to make the proxy code work again. (Why does that always break
as soon as I change things even just a little bit? :-) Even works
when accessing a password-protected page through the proxy. Prompted
by complaints from, and correct operation verified by, Nigel O'Brian.
/external/python/cpython2/Lib/urllib.py
0eae8fba8172f947a4c66d9e961a74767271e05d 27-Apr-1998 Guido van Rossum <guido@python.org> Feeble attempt at making urlopen more robust -- don't call splituser()
when splithost() returned no useable host, to avoid calling
splituser() on None.
/external/python/cpython2/Lib/urllib.py
c74521acc4d3d08fe557a8ac835c1f827d107e7c 11-Apr-1998 Guido van Rossum <guido@python.org> Oops -- remove some debug print statements!
/external/python/cpython2/Lib/urllib.py
0454b51282efd92564b5e338e8a364be3054bf10 03-Apr-1998 Guido van Rossum <guido@python.org> Oops, pulled over by the tab police :-)
/external/python/cpython2/Lib/urllib.py
b5916ab065408111cec262e12dbecbce58daf6ec 03-Apr-1998 Guido van Rossum <guido@python.org> Change by Sjoerd (with minor reformatting):
guess the mime type of a local file.

Change suggested by Sjoerd (with different implementation):
when retrieve() creates a temporary file, preserve the suffix.

Corrollary of the first change:
also return the mime type of a local file in retrieve().
/external/python/cpython2/Lib/urllib.py
a08fabad72af05d7c4f47823793e602447df957f 30-Mar-1998 Guido van Rossum <guido@python.org> A few lines were indented using spaces instead of tabs -- fix them.
/external/python/cpython2/Lib/urllib.py
7e7ca0ba1753f9088a9b2afb3351a02127337974 26-Mar-1998 Guido van Rossum <guido@python.org> A few lines were indented using spaces instead of tabs -- fix them.
/external/python/cpython2/Lib/urllib.py
6d4d1c2a259ca3452894b26acfe78d54c35c2ea5 12-Mar-1998 Guido van Rossum <guido@python.org> Added support for "data" URL, by Sjoerd Mullender.
/external/python/cpython2/Lib/urllib.py
8a666e7c56192f42288a30a53adf5299fda29557 13-Feb-1998 Guido van Rossum <guido@python.org> Fix a horrible race condition -- various routines were storing the
most recently opened URL in self.openedurl of the URLopener instance.
This doesn't really work if multiple threads share the same opener
instance!

Fix: openedurl was actually simply the type prefix (e.g. "http:")
followed by the rest of the URL; since the rest of the URL is
available and the type is effectively determined by where you are in
the code, I can reconstruct the full URL easily, e.g. "http:" + url.
/external/python/cpython2/Lib/urllib.py
03710d2a4024a03bf7d16a3dad32117ea7910151 05-Feb-1998 Guido van Rossum <guido@python.org> Two suggested features by Sjoerd:

- use the tempcache in the open() method, too.

- use the "unwrap"ped url as key for the tempcache.
/external/python/cpython2/Lib/urllib.py
c5d8fed26106d398fc3c0e27fa4c2364f4c40c40 05-Feb-1998 Guido van Rossum <guido@python.org> (1) Use matchobj.groups(), not matchbj.group() to get all groups.

(2) Provisional hack to avoid dying when trying to turn echo on or off
on Macs, where os.system() doesn't exist.
/external/python/cpython2/Lib/urllib.py
e7579624ef2997783f5f5354b3fcf8b0ceccabd2 19-Jan-1998 Guido van Rossum <guido@python.org> Fix bad new bug in ftp code -- the test for existing file using NLST
would set the transfer to text mode instead of the specified mode.
/external/python/cpython2/Lib/urllib.py
d499004860fc74cd95f40b786133229f1d0550bf 28-Dec-1997 Guido van Rossum <guido@python.org> Solve two annoying problems with ftp URLs for Jack: when repeated
retrieving files from the same host and directory, you had to close
the previous instance before opening a new one; and retrieving a
non-existent file would return an empty file. (The latter fix relies
on maybe an undocumented property of NLST -- NLST of a file returns
just that file, while NLST of a non-existent file returns nothing. A
side effect, unfortunately, seems to be that now ftp-retrieving an
*empty* directory may fail. Ah well.)
/external/python/cpython2/Lib/urllib.py
c0f29c2d31b9be8ffd60083e3724f90d13bd0cf4 02-Dec-1997 Guido van Rossum <guido@python.org> When a port is specified in an ftp:// URL, must convert it to a number!
/external/python/cpython2/Lib/urllib.py
83600050d0aacd17e10f426881394237aca79f8e 18-Nov-1997 Guido van Rossum <guido@python.org> Assert that the proxies object passed in to the URLopener constructor
is indeed a dictionary (or a mapping).
/external/python/cpython2/Lib/urllib.py
036309b13eefbcc009f44142e29a98cbe9e2a460 27-Oct-1997 Guido van Rossum <guido@python.org> This should hopefully finally clean up the remaining __del__ related
problems with this module, even if an instance of a derived class is
kept alive longer than the urllib module itself...
/external/python/cpython2/Lib/urllib.py
654451dc54b2fa55f891bff72365d4e710245362 14-Oct-1997 Fred Drake <fdrake@acm.org> splitpasswd(): The parameter is named "user", not "host".
/external/python/cpython2/Lib/urllib.py
332e14437c6e7461e9756f75e4fac3f9d2043023 30-Sep-1997 Guido van Rossum <guido@python.org> Use sys.exc_info() where needed.
Use "re" module, making it threadsafe.
/external/python/cpython2/Lib/urllib.py
10499324cf8e91e1f1775e594ccdd034f9026987 08-Sep-1997 Guido van Rossum <guido@python.org> Initialize self.__tempfiles to [] in the constructor (else it remains
a shared class variable -- but each instance will attempt to clean it
up entirely ob cleanup).
/external/python/cpython2/Lib/urllib.py
2b3fd76cc7599630df68444a7a96e97fddd5c0fb 04-Sep-1997 Guido van Rossum <guido@python.org> One patch from Sjoerd and one from Jack.

Sjoerd: add separate administration of temporary files created y
URLopener.retrieve() so cleanup can properly remove them. The old
code removed everything in tempcache which was a bad idea if the user
had passed a non-temp file into it. (I added a line to delete the
tempcache in cleanup() -- it still seems to make sense.)

Jack: in basejoin(), interpret relative paths starting in "../". This
is necessary if the server uses symbolic links.
/external/python/cpython2/Lib/urllib.py
ab0abdcef8dac933d838cb584dd4b728c2474b1e 26-Aug-1997 Guido van Rossum <guido@python.org> Explicitly close the socket and temp file in URLopener.retrieve(), so
that multiple retrievals using the same connection will work.

This leaves open the more general problem that after
f = urlopen("ftp://...")
f must be closed before another retrieval from the same host should be
attempted.
/external/python/cpython2/Lib/urllib.py
b6784dc53f41def6dcf59585038cd720c2f66969 21-Aug-1997 Guido van Rossum <guido@python.org> Interpret three slashes in file: URL as local file (for Netscape on
Windows/Mac).
/external/python/cpython2/Lib/urllib.py
f668d17e010ea5a09846d2e6a994511ca7ad28eb 06-Jun-1997 Guido van Rossum <guido@python.org> Clear the ftp cache when it contains more than 10 entries.
/external/python/cpython2/Lib/urllib.py
2966b322055158184eebc72bb892ef2ccc42f0d2 06-Jun-1997 Guido van Rossum <guido@python.org> Catch *all* errors that ftplib can raise (ftplib.all_errors) rather
than just the four.

Also folded some long lines.
/external/python/cpython2/Lib/urllib.py
c24751b57a4e9761efe29b4ed6594af6fa955747 03-Jun-1997 Guido van Rossum <guido@python.org> Add Host: header to URL request.
/external/python/cpython2/Lib/urllib.py
1aec3f087e46518f88027338b6b344dd3105699e 28-May-1997 Guido van Rossum <guido@python.org> lowercase proxies env variables, for Windows.
/external/python/cpython2/Lib/urllib.py
ab0d1afdf3f29bbc4e822b75dc93999c61c67b2d 16-Apr-1997 Guido van Rossum <guido@python.org> spliturl() should not throw away everything past first newline
/external/python/cpython2/Lib/urllib.py
54a1d0bc699ea0cbe4fbe79dfe3ddcd427ab807e 11-Apr-1997 Guido van Rossum <guido@python.org> (Jack+Guido:) interpret ../ in basejoin() according to RFC1808.
/external/python/cpython2/Lib/urllib.py
c511aee0e37d82639dcd4f9b3d0446b8a05d8077 11-Apr-1997 Guido van Rossum <guido@python.org> Open files in binary mode.
/external/python/cpython2/Lib/urllib.py
fd79566d0f04c4cd1d98bca9396fbf2426f1c6ac 02-Apr-1997 Guido van Rossum <guido@python.org> Fix two small bugs with proxies.
/external/python/cpython2/Lib/urllib.py
838cb28290471a600ad04556fa909bdfe877e29e 10-Feb-1997 Guido van Rossum <guido@python.org> Put a new, more useful, set of references in the leading comment.
/external/python/cpython2/Lib/urllib.py
d23d9409f311d53e0968fd65a6cdab1777e410ab 30-Jan-1997 Guido van Rossum <guido@python.org> Move the 'import os' in URLopener.cleanup() to inside the block
guarded by 'if self.tempcache', to reduce the likelihood of this
causing an exception when invoked during __del__...
/external/python/cpython2/Lib/urllib.py
0564e12367dc10349cd5596bdbe9bbcb44e112c2 13-Dec-1996 Guido van Rossum <guido@python.org> Added quote_plus() and unquote_plus(), to do space/plus substitutions
for form field values.
/external/python/cpython2/Lib/urllib.py
bd01374da88d1cbadf111bfdeb0d7c4b2f0629c6 10-Dec-1996 Guido van Rossum <guido@python.org> Add optional data argument to urlopen() and open_http(), to trigger POST.
/external/python/cpython2/Lib/urllib.py
29e77816f5420824545cecdfc4541c91c5225ba7 27-Nov-1996 Guido van Rossum <guido@python.org> Added safeguard against failure in __del__.
/external/python/cpython2/Lib/urllib.py
3c8484e866fb9a8a1c26a253adc414f682861fc3 20-Nov-1996 Guido van Rossum <guido@python.org> When re-raising an exception raised by a module used internally as
IOError, keep the traceback.
/external/python/cpython2/Lib/urllib.py
c5d7e80739fdaed472955ca2d3d4933c27ab879b 11-Nov-1996 Guido van Rossum <guido@python.org> Fix the way the Authorization header is sent (how could this have worked?).
/external/python/cpython2/Lib/urllib.py
5b1b33c7f498651c66fd2c81c877db190a5add6d 22-Oct-1996 Guido van Rossum <guido@python.org> Fix another case where...
/external/python/cpython2/Lib/urllib.py
b030bc026eb57861568fdc9310512185c95a6f11 10-Oct-1996 Guido van Rossum <guido@python.org> Fix some cases where self.openedurl wasn't set.
/external/python/cpython2/Lib/urllib.py
e6ad8913e20766e3769b346450dc952f0140462c 10-Sep-1996 Guido van Rossum <guido@python.org> One fix by sjoerd and one suggested by him. Bumped __version__ to 1.5.
Fix 1: add a method geturl() to the file-like object returned by urlopen().
Fix 2: treat http error 301 the same as error 302.
/external/python/cpython2/Lib/urllib.py
78c96370755a53a296183e83fb536df2890f9195 26-Aug-1996 Guido van Rossum <guido@python.org> Bump exposed __version__ to 1.4.
Correctly handle a URL containing user:password@host when using a proxy.
/external/python/cpython2/Lib/urllib.py
f8abb38737e0490ef3fe59bc908285fa85bb9470 26-Aug-1996 Guido van Rossum <guido@python.org> Slightly faster (un)quoting.
/external/python/cpython2/Lib/urllib.py
2281d35578450e7ee15c94b8667aa59bf406256c 26-Jun-1996 Guido van Rossum <guido@python.org> add nturl2path
/external/python/cpython2/Lib/urllib.py
84a00a80a26c4a7d7b7056a01ada32cb611bbc76 17-Jun-1996 Guido van Rossum <guido@python.org> Change defn of splitnport() to only accept valid digit strings.
/external/python/cpython2/Lib/urllib.py
53725a2858fe992cac4b343615b1594f201cced4 13-Jun-1996 Guido van Rossum <guido@python.org> Added splitnport(), which is like splitport() but returns a numeric port,
is forgiving about semi-numeric port numbers, and allows you to specify
a default port (default is -1, None returned for nonnumeric port).
/external/python/cpython2/Lib/urllib.py
a7e4b284223a7cb4d95fe892a3f7224aa3e6e06d 11-Jun-1996 Guido van Rossum <guido@python.org> Support optional filename argument for retrieve() and urlretrieve(),
to specify where it should go (if specified, even local files will be
copied into the given file).
/external/python/cpython2/Lib/urllib.py
71ac945321dbb10279aaff0a88231f9b1f4f1882 21-Mar-1996 Guido van Rossum <guido@python.org> move mac url2path conversion to separate module
/external/python/cpython2/Lib/urllib.py
442e7202f898e59e37323dcab14ca650b4d87522 20-Mar-1996 Guido van Rossum <guido@python.org> Added proxy handling; upped version.
(Proxy handling uses <proto>_proxy environment variables by default.)
/external/python/cpython2/Lib/urllib.py
0d12ead05cf43d3a8f6e79a1b20fc56c7fb5bc86 14-Feb-1996 Jack Jansen <jack.jansen@cwi.nl> Try to normalize urls referring to local files (code copied from posixpath)
/external/python/cpython2/Lib/urllib.py
8c8a02a2588b0219d88fb892635148f9467f6634 26-Jan-1996 Guido van Rossum <guido@python.org> speed up unquote() by using atoi() instead of eval()
/external/python/cpython2/Lib/urllib.py
e8ea21b0fe21df7b5889ff851751c6614810550e 21-Dec-1995 Jack Jansen <jack.jansen@cwi.nl> Added pathname2url and url2pathname methods (only correct for unix and
mac, so far)
/external/python/cpython2/Lib/urllib.py
dc3e3f69db6a6aa5aed1d604d53c0b4cf156add8 15-Dec-1995 Jack Jansen <jack.jansen@cwi.nl> Fixed local file access for macintosh
/external/python/cpython2/Lib/urllib.py
e0371b8415650748f0e0718ff5160e286abaf753 10-Nov-1995 Sjoerd Mullender <sjoerd@acm.org> Fixed basejoin. There were two main problems:
- basejoin('some/url', '#name') would strip the last component of
some/url and resturn some/#name.
- basejoin('file.html', 'relative/path') would return something like
file:/relative/path, making a relative path into an absolute one.
These bugs are fixed by some drastic changes. No scheme is added when
none is present (i.e. it works as replacement for posix.joinpath).
If a scheme is present in the second argument, it is returned
unprocessed. No hostname are added in this case. If no scheme is
present, the scheme of the first argument, if present, is used.
The algorithm is commented profusely.
Also fixed a typo in a comment.
/external/python/cpython2/Lib/urllib.py
ca44540bc8f6da4bb58c5503827fd63e5d678269 29-Aug-1995 Guido van Rossum <guido@python.org> support overriding how to open unknown url types
/external/python/cpython2/Lib/urllib.py
9c4585acfa28cd460c80b9b3ab6de5c257eaeec5 15-Aug-1995 Sjoerd Mullender <sjoerd@acm.org> Removed addbase.__del__ because it can't work.
If code keeps a reference to self.fp or any of its methods, you don't
want to close self.fp just because no explicit reference is kept to self.
/external/python/cpython2/Lib/urllib.py
30642ab29fa57942e047db4b333b966a1c4b7b4b 10-Aug-1995 Guido van Rossum <guido@python.org> changed version :-)
/external/python/cpython2/Lib/urllib.py
bbb0a05972254671ae00213e62adfb13b91ff45b 04-Aug-1995 Guido van Rossum <guido@python.org> use mimetools; add error handling and authentication
/external/python/cpython2/Lib/urllib.py
6cb15a0572b0a8ca32016e18bea5c7924303ee3b 22-Jun-1995 Guido van Rossum <guido@python.org> add User-agent hdr; read and close the file upon http error
/external/python/cpython2/Lib/urllib.py
a1124700f80db19ff02d98f4de4303496c0d203a 30-Dec-1994 Guido van Rossum <guido@python.org> Add hacks for switching protocol and path but leaving host unchanged
/external/python/cpython2/Lib/urllib.py
fa59e838132ab11e1d60fe7e05c9032378c2aa7b 21-Sep-1994 Guido van Rossum <guido@python.org> Fix bug if tmpcache is None
/external/python/cpython2/Lib/urllib.py
3bb54487675cd28166fc7271b5788b185bcc1b63 29-Aug-1994 Guido van Rossum <guido@python.org> New way of generating .pyc files, thanks to Sjoerd.
urllib.py: '+' is not always safe (even though the RFC says so :-( )
whrandom.py: throw away top bits of time to avoid overflow on Mac
(where times can be negative)
/external/python/cpython2/Lib/urllib.py
7aeb4b9ce85fa9d15c79bbb3c1ccf6cc31cd5e61 23-Aug-1994 Guido van Rossum <guido@python.org> * Lib/linecache.py: don't crash on empty filename
* Lib/macpath.py: don't return trailing colon for dirname()
(XXX won't do for volume names -- but otherwise glob(':*:*.py')
loops forever)
* Lib/traceback.py: print SyntaxError correctly
* Lib/stat.py: moved to posixstat.py; added macstat.py which has
the constants for the Mac; and created new stat.py which includes
the right one
* Lib/urllib.py: fix caching bug (by disabling the cache)
/external/python/cpython2/Lib/urllib.py
3f9a6ec9e672acb733db1633d5544120e1bd6841 12-Aug-1994 Guido van Rossum <guido@python.org> * Lib/rfc822.py: fix two bugs: error in readheaders interpreting
regex.match() result, and wrong logic in getfirstmatchingheader()
when the same header occurs twice consecutively
/external/python/cpython2/Lib/urllib.py
7c395db298a36cd4807ea9c42c0b60ea7840747a 05-Jul-1994 Guido van Rossum <guido@python.org> * Lib/urllib.py: implemented new quoting rules; added splituser,
splitpasswd, splitattr, splitvalue; new ftp syntax (user:passwd,
cwd to each subdir, type={a,i,d})
/external/python/cpython2/Lib/urllib.py
590b289672f340f2d122c6d75f195949213974e8 18-Apr-1994 Guido van Rossum <guido@python.org> Added tests for missing host to open_http and open_gopher
/external/python/cpython2/Lib/urllib.py
7c6ebb572ea73cc7873f5d8b3277fa43529953f5 22-Mar-1994 Guido van Rossum <guido@python.org> Renamed urlopen.py to urllib.py.
/external/python/cpython2/Lib/urllib.py