[Python-checkins] urllib.request: Remove unused import (GH-5268)
INADA Naoki
webhook-mailer at python.org
Mon Jan 22 02:45:34 EST 2018
https://github.com/python/cpython/commit/579e0b80b953b8a47385bc50844dbaac45d6f437
commit: 579e0b80b953b8a47385bc50844dbaac45d6f437
branch: master
author: INADA Naoki <methane at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-01-22T16:45:31+09:00
summary:
urllib.request: Remove unused import (GH-5268)
files:
M Lib/urllib/request.py
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index a192d527d8b..2b769421c56 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -1792,7 +1792,6 @@ def retrieve(self, url, filename=None, reporthook=None, data=None):
if filename:
tfp = open(filename, 'wb')
else:
- import tempfile
garbage, path = splittype(url)
garbage, path = splithost(path or "")
path, garbage = splitquery(path or "")
More information about the Python-checkins
mailing list