]> granicus.if.org Git - python/commit
urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser)
authorSenthil Kumaran <senthil@uthcode.com>
Sun, 20 Apr 2014 16:41:29 +0000 (09:41 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Sun, 20 Apr 2014 16:41:29 +0000 (09:41 -0700)
commit6117e5d8e3f00f3677f07a29b4ec968a5ed8cd76
tree0da26badccffeb64225879a989f56b2ba16b0666
parent9077d24d7f85e09e53def11b2beeaf40749e2464
urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser)
facility. Provides a better way to handle file descriptor close.

Address issue #15002 . Patch contributed by Christian Theune.
Lib/test/test_urllib_response.py
Lib/urllib/response.py