Senthil Kumaran
f577686fd3
Issue #10836 : Fix exception raised when file not found in urlretrieve
2012-10-21 13:30:02 -07:00
Nadeem Vawda
bd26b5463e
Issue #12692 : Fix resource leak in urllib.request.
2012-10-21 17:37:43 +02:00
Giampaolo Rodola'
2d51f687e1
Fix issue #16270 : urllib may hang when used for retrieving files via FTP by using a context manager.
2012-10-19 13:40:28 +02:00
Giampaolo Rodola'
b0cc91290c
Fix issue #16270 : urllib may hang when used for retrieving files via FTP by using a context manager.
2012-10-19 13:34:32 +02:00
Giampaolo Rodola'
89e92854b6
Fix issue #16270 : urllib may hang when used for retrieving files via FTP by using a context manager.
2012-10-19 13:25:17 +02:00
Georg Brandl
491b1dc79e
Closes #9374 : merge with 3.2
2012-08-24 18:15:46 +02:00
Georg Brandl
a61b09f406
Closes #9374 : add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name.
2012-08-24 18:15:29 +02:00
Senthil Kumaran
612a815820
revert the changes done for issue14826 - quoting witin Request is not desirable.
2012-07-08 18:00:47 -07:00
Senthil Kumaran
168456df11
revert the changes done for issue14826 - quoting witin Request is not desirable.
2012-07-08 17:47:25 -07:00
Senthil Kumaran
25bfb529bd
issue 14826 - Address the buildbot failure quote of url is the required change ( explanation msg164973)
2012-07-08 02:16:08 -07:00
Senthil Kumaran
45ce4dc73e
issue 14826 - Address the buildbot failure ( explanation msg164973)
2012-07-08 02:08:48 -07:00
Senthil Kumaran
540715a369
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
...
Patch contributed by Stephen Thorne.
2012-07-07 17:15:52 -07:00
Senthil Kumaran
b7451cecad
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
...
Patch contributed by Stephen Thorne.
2012-07-07 17:11:44 -07:00
Senthil Kumaran
a1632e65fa
urllib.parse cleanup. rename keywords used as variables
2012-06-29 11:08:51 -07:00
Senthil Kumaran
eda29f4718
urllib.parse cleanup. rename keywords used as variables
2012-06-29 11:08:20 -07:00
Georg Brandl
496660c56b
Partial backport of 612f34e31270: fix spacing error in exception message.
2012-06-24 20:01:05 +02:00
Georg Brandl
fcbdbf22e3
urllib.request: fix spacing errors in exception/warning messages.
2012-06-24 19:56:31 +02:00
Senthil Kumaran
4322c178b9
Issue #14920 : Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg
2012-05-26 09:55:28 +08:00
Senthil Kumaran
ffa4b2c037
Issue #14920 : Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg
2012-05-26 09:53:32 +08:00
Senthil Kumaran
4715ca5600
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:57:38 +08:00
Senthil Kumaran
2fc5a50809
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:56:17 +08:00
Ezio Melotti
ed1183db8b
#14072 : merge with 3.2.
2012-05-19 17:16:22 +03:00
Ezio Melotti
6709b7d5d1
#14072 : Fix parsing of tel URIs in urlparse by making the check for ports stricter.
2012-05-19 17:15:19 +03:00
Senthil Kumaran
15e848b076
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:12:46 +08:00
Senthil Kumaran
1be320ebdd
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:12:00 +08:00
Antoine Pitrou
de9ac6c2e5
Issue #14780 : urllib.request.urlopen() now has a `cadefault` argument to use the default certificate store.
...
Initial patch by James Oakley.
2012-05-16 21:40:01 +02:00
Senthil Kumaran
92a5bf0c0a
Issue12541 - Add UserWarning for unquoted realms
2012-05-16 00:03:29 +08:00
Senthil Kumaran
0ea91cb5c6
Issue12541 - Add UserWarning for unquoted realms
2012-05-15 23:59:42 +08:00
Senthil Kumaran
b26fe2f313
merge from 3.2 - Issue #12541 : Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.
2012-05-15 22:39:17 +08:00
Senthil Kumaran
34f3fcc269
Issue #12541 : Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.
...
G: changed Misc/NEWS
2012-05-15 22:30:25 +08:00
Senthil Kumaran
e53d977e80
Explain the use of charset parameter with Content-Type header: issue11082
2012-03-15 18:15:34 -07:00
Senthil Kumaran
6b3434ae04
Explain the use of charset parameter with Content-Type header. Issue11082
2012-03-15 18:11:16 -07:00
Senthil Kumaran
3270d11d8a
port from 3.2 - Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199
2012-03-15 13:28:27 -07:00
Senthil Kumaran
73277fe0eb
closes Issue #11199 : Fix the with urllib which hangs on particular ftp urls.
2012-03-15 13:26:12 -07:00
Senthil Kumaran
38b968b913
deprecated the old urllib primitives in 3.3 urllib package - issue 10050
2012-03-14 13:43:53 -07:00
Senthil Kumaran
e24f96a059
Issue10050 - urlretrieve uses newer urlopen. reporthook of urlretrieve takes, block number, block read size, file_size
2012-03-13 19:29:33 -07:00
Senthil Kumaran
3242577a08
merge from 3.2
2012-01-21 11:55:40 +08:00
Senthil Kumaran
3800ea9f65
Fix Issue6631 - Disallow relative file paths in urllib urlopen
2012-01-21 11:52:48 +08:00
Senthil Kumaran
4479577388
merge from 3.2 - Fix Issue #13642 : Unquote before b64encoding user:password during Basic Authentication.
2012-01-14 19:12:28 +08:00
Senthil Kumaran
c5c5a14577
Fix Issue #13642 : Unquote before b64encoding user:password during Basic Authentication.
2012-01-14 19:09:04 +08:00
Senthil Kumaran
6497aa3e00
Issue13696 - Fix 302 Redirection for Relative urls.
2012-01-04 13:46:59 +08:00
Charles-François Natali
cf53ae2171
Issue #8035 : urllib: Fix a bug where the client could remain stuck after a
...
redirection or an error.
2011-12-18 16:05:07 +01:00
Senthil Kumaran
239a0429fd
merge from 3.2
2012-01-04 14:47:30 +08:00
Charles-François Natali
3c4dcea712
Issue #8035 : urllib: Fix a bug where the client could remain stuck after a
...
redirection or an error.
2011-12-18 16:08:33 +01:00
Jason R. Coombs
0612e8c2a2
Merged fix for #13211 from 3.2
2011-12-03 09:39:58 -05:00
Jason R. Coombs
aa204dbe9c
Issue #13211 : Add .reason attribute to HTTPError to implement parent class (URLError) interface.
2011-11-07 10:50:32 -05:00
Senthil Kumaran
4c875a986f
'HTTPSHandler' and not the type.
2011-11-01 23:57:57 +08:00
Senthil Kumaran
0d54eb9bdc
Append HTTPSHandler to __all__ when it is available.
2011-11-01 23:49:46 +08:00
Senthil Kumaran
6c5bd40a3e
issue13287 - Define __all__ for urllib.request and urllib.error and expose only
...
the relevant module. Other cleanup improvements. Patch by flox.
2011-11-01 23:20:31 +08:00
Senthil Kumaran
ab06e3f285
merge from 3.2 - Fix issue 10817 - Fix urlretrieve function to raise ContentTooShortError
...
even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 01:39:49 +08:00
Senthil Kumaran
ce260142c6
Fix issue 10817 - Fix urlretrieve function to raise ContentTooShortError
...
even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 01:35:17 +08:00
Senthil Kumaran
1a129c882c
urllib.request - syntax changes enhancing readability. By Éric Araujo
2011-10-20 02:50:13 +08:00
Senthil Kumaran
34d38dce11
urllib.request - syntax changes enhancing readability. By Éric Araujo
2011-10-20 02:48:01 +08:00
Senthil Kumaran
de49d64dbc
Fix closes issue 1673007 urllib.request to support HEAD requests with a new method arg.
2011-10-16 23:54:44 +08:00
Antoine Pitrou
6b4883dec0
PEP 3151 / issue #12555 : reworking the OS and IO exception hierarchy.
2011-10-12 02:54:14 +02:00
Senthil Kumaran
1b7da519b0
Issue13104 - Fix urllib.request.thishost() utility function.
2011-10-06 00:32:02 +08:00
Senthil Kumaran
55a190fbbd
merge from 3.2. Issue13104 - Fix urllib.request.thishost() utility function.
2011-10-06 00:32:52 +08:00
Senthil Kumaran
0c8108914e
merge from 3.2 - Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
2011-08-06 12:28:16 +08:00
Senthil Kumaran
89976f1cdc
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
2011-08-06 12:27:40 +08:00
Senthil Kumaran
8a984b58b7
merge from 3.2 - Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:44:10 +08:00
Senthil Kumaran
2a157d2a3d
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:37:22 +08:00
Senthil Kumaran
4d90b19373
merge from 3.2 - Correcting issue 12576 fix, which resulted in buildbot failures.
2011-07-27 09:32:04 +08:00
Senthil Kumaran
45686b472b
Correcting issue 12576 fix, which resulted in buildbot failures.
2011-07-27 09:31:03 +08:00
Senthil Kumaran
7496fef8ff
merge from 3.2 - Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
2011-07-27 08:06:44 +08:00
Senthil Kumaran
1299a8f3b2
Fix closes Issue12576 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
2011-07-27 08:05:58 +08:00
Nadeem Vawda
0200016132
Merge: #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.
2011-07-23 14:25:45 +02:00
Nadeem Vawda
08f5f7aa81
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.
2011-07-23 14:03:00 +02:00
Raymond Hettinger
29e2c64edd
Issue #4608 : urllib.request.urlopen does not return an iterable object
2011-06-26 14:30:25 +02:00
Raymond Hettinger
038018aaa4
Issue #4608 : urllib.request.urlopen does not return an iterable object
2011-06-26 14:29:35 +02:00
Victor Stinner
f073dc286c
(Merge 3.2) Issue #12133 : fix a ResourceWarning in urllib.request
...
AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if
its getresponse() method fails with a socket error. Patch written by Ezio
Melotti.
2011-06-17 14:02:18 +02:00
Victor Stinner
a4c45d73cf
Issue #12133 : fix a ResourceWarning in urllib.request
...
AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if
its getresponse() method fails with a socket error. Patch written by Ezio
Melotti.
2011-06-17 14:01:18 +02:00
Senthil Kumaran
4de00a2e87
Fix closes Issue #11799 : urllib.request Authentication Handlers will raise a
...
ValueError when presented with an unsupported Authentication Scheme.
2011-05-11 21:17:57 +08:00
Senthil Kumaran
b496159603
merge from 3.2
2011-04-15 18:22:05 +08:00
Senthil Kumaran
b4bd4af8c4
merge from 3.1
2011-04-15 18:21:26 +08:00
Senthil Kumaran
397eb4411a
Issue #11467 : Fix urlparse behavior when handling urls which contains scheme specific part only digits.
2011-04-15 18:20:24 +08:00
Senthil Kumaran
1cea9a0227
merge from 3.2
2011-04-13 07:24:32 +08:00
Senthil Kumaran
b17abb1af9
merge from 3.1
2011-04-13 07:22:29 +08:00
Senthil Kumaran
2643041970
Fix Issue11703 - urllib2.geturl() does not return correct url when the original url contains #fragment. Patch Contribution by Santoso Wijaya.
2011-04-13 07:01:19 +08:00
guido@google.com
2008a8f8c0
Merge Issue 11662 from 3.2 branch.
2011-03-29 12:02:49 -07:00
guido@google.com
c768ff5d4f
Merge Issue 11662 from 3.1 branch.
2011-03-29 11:51:26 -07:00
guido@google.com
a119df91f3
Issue 11662: Fix vulnerability in urllib/urllib2.
...
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)
2011-03-29 11:41:02 -07:00
Senthil Kumaran
e6ead3905d
issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch by Nadeem Vawda
2011-03-24 11:47:29 +08:00
Senthil Kumaran
2024acd36f
issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch by Nadeem Vawda.
2011-03-24 11:46:19 +08:00
Senthil Kumaran
d91ffcafcb
Closes issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil.
2011-03-19 17:25:27 +08:00
Ronald Oussoren
f2db4de4d8
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list.
2011-03-14 18:46:50 -04:00
Ronald Oussoren
e72e161851
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list
...
Patch by Scott Wilson.
2011-03-14 18:15:25 -04:00
Senthil Kumaran
a4d5b0cb62
Closes issue11563 test_urllibnet is triggering a ResourceWarning. Patch by Jeff McNeil.
2011-03-19 17:47:26 +08:00
Brett Cannon
e73b2bb415
Be more thorough in blanking out methods grabbed off of an fp.
2011-03-15 18:45:13 -04:00
Ronald Oussoren
ba3a978fc1
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list.
2011-03-14 18:48:31 -04:00
Marc-André Lemburg
8f36af7a4c
Normalize the encoding names for Latin-1 and UTF-8 to
...
'latin-1' and 'utf-8'.
These are optimized in the Python Unicode implementation
to result in more direct processing, bypassing the codec
registry.
Also see issue11303.
2011-02-25 15:42:01 +00:00
Georg Brandl
f6c8fd62b9
Merged revisions 86537,86867-86868,86881,86887,86913-86915,86931-86933,86960,86964,86974,86980,86996,87008,87050 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r86537 | georg.brandl | 2010-11-19 23:09:04 +0100 (Fr, 19 Nov 2010) | 1 line
Do not put a raw REPLACEMENT CHARACTER in the document.
........
r86867 | georg.brandl | 2010-11-29 15:50:54 +0100 (Mo, 29 Nov 2010) | 1 line
Fix indentation bug.
........
r86868 | georg.brandl | 2010-11-29 15:53:15 +0100 (Mo, 29 Nov 2010) | 1 line
Fix heading style inconsistencies.
........
r86881 | georg.brandl | 2010-11-30 08:43:28 +0100 (Di, 30 Nov 2010) | 1 line
#10584 : fix bad links.
........
r86887 | georg.brandl | 2010-11-30 15:57:54 +0100 (Di, 30 Nov 2010) | 1 line
Fix typo.
........
r86913 | georg.brandl | 2010-12-01 16:32:43 +0100 (Mi, 01 Dez 2010) | 1 line
Add missing word, and add a better reference to the actual function.
........
r86914 | georg.brandl | 2010-12-01 16:36:33 +0100 (Mi, 01 Dez 2010) | 1 line
#10594 : fix parameter names in PyList API docs.
........
r86915 | georg.brandl | 2010-12-01 16:44:25 +0100 (Mi, 01 Dez 2010) | 1 line
Fix some markup and style in the unittest docs.
........
r86931 | georg.brandl | 2010-12-02 10:06:12 +0100 (Do, 02 Dez 2010) | 1 line
Fix-up documentation of makedirs().
........
r86932 | david.malcolm | 2010-12-02 17:41:00 +0100 (Do, 02 Dez 2010) | 2 lines
Fix spelling of Jamie Zawinski's surname in urllib.parse docstring (issue 10606)
........
r86933 | georg.brandl | 2010-12-02 19:02:01 +0100 (Do, 02 Dez 2010) | 1 line
#10597 : fix Py_SetPythonHome docs by pointing to where the meaning of PYTHONHOME is already documented.
........
r86960 | georg.brandl | 2010-12-03 08:55:44 +0100 (Fr, 03 Dez 2010) | 1 line
#10360 : catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does.
........
r86964 | georg.brandl | 2010-12-03 10:58:38 +0100 (Fr, 03 Dez 2010) | 1 line
#10549 : fix interface of docclass() for text documenter.
........
r86974 | georg.brandl | 2010-12-03 16:30:09 +0100 (Fr, 03 Dez 2010) | 1 line
Markup consistency fixes.
........
r86980 | georg.brandl | 2010-12-03 18:19:27 +0100 (Fr, 03 Dez 2010) | 1 line
Fix punctuation.
........
r86996 | georg.brandl | 2010-12-03 20:56:42 +0100 (Fr, 03 Dez 2010) | 1 line
Fix indentation.
........
r87008 | georg.brandl | 2010-12-04 10:04:04 +0100 (Sa, 04 Dez 2010) | 1 line
Fix typo.
........
r87050 | georg.brandl | 2010-12-04 18:09:30 +0100 (Sa, 04 Dez 2010) | 1 line
Fix typo.
........
2011-02-25 09:48:21 +00:00
Senthil Kumaran
2933312fe7
Fixed issue11082 - Reject str for POST data with a TypeError. Document the need to explicitly encode to bytes when using urlencode.
2011-02-11 11:25:47 +00:00
Georg Brandl
6153604bc7
Remove lots of spaces within exception message.
2011-02-03 07:46:41 +00:00
Victor Stinner
ac71c54b88
Add encoding and errors arguments to urllib.parse_qs() and urllib.parse_qsl()
2011-01-14 12:52:12 +00:00
Senthil Kumaran
1e991f2de5
Fix some mistakes- Issue3243 (r87399) Correcting the operator precendence
...
problem with Content-Length header and uncommenting the test.
2010-12-24 04:03:59 +00:00
R. David Murray
46c6fd605e
Merged revisions 87448 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87448 | r.david.murray | 2010-12-23 14:44:49 -0500 (Thu, 23 Dec 2010) | 4 lines
#4496 : remove misleading comment and note that self.handlers is obsolete.
self.handlers is still used in one urllib2 test, but not by the code iteslf.
........
2010-12-23 19:47:37 +00:00
R. David Murray
25b8cca6e8
#4496 : remove misleading comment and note that self.handlers is obsolete.
...
self.handlers is still used in one urllib2 test, but not by the code iteslf.
2010-12-23 19:44:49 +00:00
Georg Brandl
09a7df8301
#3243 follow-up: remove debugging print and fix docs; data is a bytes object.
2010-12-19 12:33:52 +00:00
Senthil Kumaran
7bc0d872dd
Issue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li and Chris AtLee.
2010-12-19 10:49:52 +00:00
Senthil Kumaran
3396e8671d
Merged revisions 87329 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87329 | senthil.kumaran | 2010-12-17 12:48:45 +0800 (Fri, 17 Dec 2010) | 3 lines
Fix Issue9721 - urljoin behavior when the relative url starts with ';'
........
2010-12-17 04:54:43 +00:00