Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #25985: sys.version_info is now used instead of sys.version | Serhiy Storchaka | 2016-02-11 | 1 | -1/+1 |
| | | | | to format short Python version. | ||||
* | Issue #12923: Merge FancyURLopener fix from 3.5 | Martin Panter | 2016-02-06 | 1 | -11/+13 |
|\ | |||||
| * | Issue #12923: Reset FancyURLopener's redirect counter even on exception | Martin Panter | 2016-02-04 | 1 | -11/+13 |
| | | | | | | | | Based on patches by Brian Brazil and Daniel Rocco. | ||||
* | | merge from 3.5 | Senthil Kumaran | 2016-01-26 | 1 | -15/+0 |
|\ \ | |/ | | | | | Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases. | ||||
| * | Remove unnecessary test case comment in urllib.parse.py. These are asserted ↵ | Senthil Kumaran | 2016-01-26 | 1 | -15/+0 |
| | | | | | | | | as test cases. | ||||
* | | Issue #25822: Add docstrings to the fields of urllib.parse results. | Senthil Kumaran | 2016-01-14 | 1 | -2/+65 |
| | | | | | | | | Patch contributed by Swati Jaiswal. | ||||
* | | Issue #25899: Converted non-ASCII characters in docstrings and manpage | Serhiy Storchaka | 2015-12-18 | 1 | -3/+3 |
|\ \ | |/ | | | | | | | to ASCII replacements. Removed UTF-8 BOM from Misc/NEWS. Original patch by Chris Angelico. | ||||
* | | Issue #25576: Apply fix to new urlopen() doc string | Martin Panter | 2015-11-24 | 1 | -7/+2 |
| | | |||||
* | | Issue #16099: RobotFileParser now supports Crawl-delay and Request-rate | Berker Peksag | 2015-10-08 | 1 | -2/+37 |
| | | | | | | | | | | | | extensions. Patch by Nikolay Bogoychev. | ||||
* | | Add missing docstring | Raymond Hettinger | 2015-08-18 | 1 | -0/+65 |
| | | |||||
* | | Issue #20059: urllib.parse raises ValueError on all invalid ports. | Robert Collins | 2015-08-09 | 1 | -2/+1 |
|/ | | | | Patch by Martin Panter. | ||||
* | Issue #24021: docstring for urllib.urlcleanup. | Robert Collins | 2015-08-04 | 1 | -0/+1 |
|\ | | | | | | | Patch from Daniel Andrade Groppe and Peter Lovett | ||||
| * | Issue #24021: docstring for urllib.urlcleanup. | Robert Collins | 2015-08-04 | 1 | -0/+1 |
| | | | | | | | | Patch from Daniel Andrade Groppe and Peter Lovett | ||||
* | | Issue #13866: add *quote_via* argument to urlencode. | R David Murray | 2015-05-18 | 1 | -14/+15 |
| | | | | | | | | | | Patch by samwyse, completed by Arnon Yaari, and reviewed by Martin Panter. | ||||
* | | Issue #23887: urllib.error.HTTPError now has a proper repr() representation. | Facundo Batista | 2015-04-22 | 1 | -1/+6 |
| | | |||||
* | | #7159: generalize urllib prior auth support. | R David Murray | 2015-04-16 | 1 | -18/+60 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fix is a superset of the functionality introduced by the issue #19494 enhancement, and supersedes that fix. Instead of a new handler, we have a new password manager that tracks whether we should send the auth for a given uri. This allows us to say "always send", satisfying #19494, or track that we've succeeded in auth and send the creds right away on every *subsequent* request. The support for using the password manager is added to AbstractBasicAuth, which means the proxy handler also now can handle prior auth if passed the new password manager. Patch by Akshit Khurana, docs mostly by me. | ||||
* | | Issue #23703: Fix a regression in urljoin() introduced in 901e4e52b20a. | Berker Peksag | 2015-04-15 | 1 | -2/+1 |
| | | | | | | | | Patch by Demian Brecht. | ||||
* | | Issue #23865: close() methods in multiple modules now are idempotent and more | Serhiy Storchaka | 2015-04-10 | 1 | -5/+9 |
|\ \ | |/ | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured. | ||||
| * | Issue #23865: close() methods in multiple modules now are idempotent and more | Serhiy Storchaka | 2015-04-10 | 1 | -5/+9 |
| | | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured. | ||||
* | | Issue #23411: Added DefragResult, ParseResult, SplitResult, DefragResultBytes, | Serhiy Storchaka | 2015-04-07 | 1 | -1/+3 |
| | | | | | | | | | | ParseResultBytes, and SplitResultBytes to urllib.parse.__all__. Patch by Martin Panter. | ||||
* | | (Merge 3.4) Issue #23881: urllib.request.ftpwrapper constructor now closes the | Victor Stinner | 2015-04-07 | 1 | -1/+5 |
|\ \ | |/ | | | | | socket if the FTP connection failed to fix a ResourceWarning. | ||||
| * | Issue #23881: urllib.request.ftpwrapper constructor now closes the socket if | Victor Stinner | 2015-04-07 | 1 | -1/+5 |
| | | | | | | | | the FTP connection failed to fix a ResourceWarning. | ||||
* | | Issue #23563: Optimized utility functions in urllib.parse. | Serhiy Storchaka | 2015-03-03 | 1 | -60/+28 |
| | | |||||
* | | Merge: #23040: Clarify treatment of encoding and errors when component is bytes. | R David Murray | 2014-12-25 | 1 | -4/+5 |
|\ \ | |/ | |||||
| * | #23040: Clarify treatment of encoding and errors when component is bytes. | R David Murray | 2014-12-25 | 1 | -4/+5 |
| | | | | | | | | Patch by Wojtek Ruszczewski. | ||||
* | | merge 3.4 | Benjamin Peterson | 2014-12-07 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | use context's check_hostname attribute rather than the HTTPSHandler ↵ | Benjamin Peterson | 2014-12-07 | 1 | -2/+2 |
| | | | | | | | | check_hostname parameter | ||||
| * | backport context argument of urlopen (#22366) for pep 476 | Senthil Kumaran | 2014-09-19 | 1 | -1/+9 |
| | | |||||
* | | Close #19494: add urrlib.request.HTTPBasicPriorAuthHandler | Nick Coghlan | 2014-11-12 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This auth handler adds the Authorization header to the first HTTP request rather than waiting for a HTTP 401 Unauthorized response from the server as the default HTTPBasicAuthHandler does. This allows working with websites like https://api.github.com which do not follow the strict interpretation of RFC, but more the dicta in the end of section 2 of RFC 2617: > A client MAY preemptively send the corresponding Authorization > header with requests for resources in that space without receipt > of another challenge from the server. Similarly, when a client > sends a request to a proxy, it may reuse a userid and password in > the Proxy-Authorization header field without receiving another > challenge from the proxy server. See section 4 for security > considerations associated with Basic authentication. Patch by Matej Cepl. | ||||
* | | Issue #22278: Fix urljoin problem with relative urls, a regression observed | Senthil Kumaran | 2014-09-22 | 1 | -1/+5 |
| | | | | | | | | | | | | after changes to issue22118 were submitted. Patch contributed by Demian Brecht and reviewed by Antoine Pitrou. | ||||
* | | Issue #22366: urllib.request.urlopen will accept a context object (SSLContext) | Senthil Kumaran | 2014-09-19 | 1 | -1/+9 |
| | | | | | | | | | | | | as an argument which will then used be for HTTPS connection. Patch by Alex Gaynor. | ||||
* | | Issue #19524: Fixed resource leak in the HTTP connection when an invalid | Serhiy Storchaka | 2014-09-06 | 1 | -11/+14 |
|\ \ | |/ | | | | | response is received. Patch by Martin Panter. | ||||
| * | Issue #19524: Fixed resource leak in the HTTP connection when an invalid | Serhiy Storchaka | 2014-09-06 | 1 | -11/+14 |
| | | | | | | | | response is received. Patch by Martin Panter. | ||||
* | | Issue #22118: Switch urllib.parse to use RFC 3986 semantics for the ↵ | Antoine Pitrou | 2014-08-21 | 1 | -25/+38 |
| | | | | | | | | | | | | resolution of relative URLs, rather than RFCs 1808 and 2396. Patch by Demian Brecht. | ||||
* | | merge from 3.4 | Senthil Kumaran | 2014-08-20 | 1 | -18/+2 |
|\ \ | |/ | | | | | Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull. | ||||
| * | Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. ↵ | Senthil Kumaran | 2014-08-20 | 1 | -18/+2 |
| | | | | | | | | Initial patch by Sam Bull. | ||||
* | | merge 3.4; backout changeset 3435c5865cfc due to buildbot failures. Ref #8797 | Senthil Kumaran | 2014-08-16 | 1 | -2/+18 |
|\ \ | |/ | |||||
| * | backout changeset 3435c5865cfc due to buildbot failures. Ref #8797 | Senthil Kumaran | 2014-08-16 | 1 | -2/+18 |
| | | |||||
* | | merge from 3.4 | Senthil Kumaran | 2014-08-16 | 1 | -18/+2 |
|\ \ | |/ | | | | | Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. Initial patch by Sam Bull. | ||||
| * | Fix Issue #8797: Raise HTTPError on failed Basic Authentication immediately. ↵ | Senthil Kumaran | 2014-08-16 | 1 | -18/+2 |
| | | | | | | | | Initial patch by Sam Bull. | ||||
* | | Issue #22033: Reprs of most Python implemened classes now contain actual | Serhiy Storchaka | 2014-07-25 | 1 | -1/+1 |
| | | | | | | | | class name instead of hardcoded one. | ||||
* | | Merge 3.4 | Senthil Kumaran | 2014-07-22 | 1 | -1/+1 |
|\ \ | |/ | | | | | Fix localhost checking in FileHandler. Raised in #21970. | ||||
| * | Fix localhost checking in FileHandler. Raised in #21970. | Senthil Kumaran | 2014-07-22 | 1 | -1/+1 |
| | | |||||
* | | merge 3.4 (#21463) | Benjamin Peterson | 2014-06-07 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | in ftp cache pruning, avoid changing the size of a dict while iterating over ↵ | Benjamin Peterson | 2014-06-07 | 1 | -1/+1 |
| | | | | | | | | | | | | it (closes #21463) Patch by Skyler Leigh Amador. | ||||
* | | Issue 21469: Minor code modernization (convert and/or expression to an ↵ | Raymond Hettinger | 2014-05-13 | 1 | -1/+1 |
|/ | | | | | | if/else expression). Suggested by: Tal Einat | ||||
* | Issue 21469: Mitigate risk of false positives with robotparser. | Raymond Hettinger | 2014-05-13 | 1 | -2/+9 |
| | | | | | | | | | | | | | | | | | | | * Repair the broken link to norobots-rfc.txt. * HTTP response codes >= 500 treated as a failed read rather than as a not found. Not found means that we can assume the entire site is allowed. A 5xx server error tells us nothing. * A successful read() or parse() updates the mtime (which is defined to be "the time the robots.txt file was last fetched"). * The can_fetch() method returns False unless we've had a read() with a 2xx or 4xx response. This avoids false positives in the case where a user calls can_fetch() before calling read(). * I don't see any easy way to test this patch without hitting internet resources that might change or without use of mock objects that wouldn't provide must reassurance. | ||||
* | urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser) | Senthil Kumaran | 2014-04-20 | 1 | -42/+19 |
| | | | | | | facility. Provides a better way to handle file descriptor close. Address issue #15002 . Patch contributed by Christian Theune. | ||||
* | Convert urllib.request parse_proxy doctests to unittests. | Senthil Kumaran | 2014-04-14 | 1 | -44/+1 |
| | |||||
* | fix typo | Benjamin Peterson | 2014-04-01 | 1 | -1/+1 |
| |