summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib_response.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-12707: deprecate info(), geturl(), getcode() methods in favor of ↵Ashwin Ramaswami2019-09-131-0/+4
| | | | | headers, url, and status properties for HTTPResponse and addinfourl (GH-11447) Co-Authored-By: epicfaace <aramaswamis@gmail.com>
* urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser)Senthil Kumaran2014-04-201-24/+41
| | | | | | facility. Provides a better way to handle file descriptor close. Address issue #15002 . Patch contributed by Christian Theune.
* Add __enter__ and __exit__ methods to addbase() so that it supports with.Jeremy Hylton2009-03-261-0/+42
This change also adds a minimal unittest of urllib.response.addbase. More are needed, but not to cover the small change being made here. Addresses http://bugs.python.org/issue5418