summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-01-22 16:45:31 +0900
committerGitHub <noreply@github.com>2018-01-22 16:45:31 +0900
commit579e0b80b953b8a47385bc50844dbaac45d6f437 (patch)
tree55b78d9ad8232d537af5deed1b338eae70d48288
parent3510334361d6d39aad89e4e0d9bccd0695668583 (diff)
downloadcpython-git-579e0b80b953b8a47385bc50844dbaac45d6f437.tar.gz
urllib.request: Remove unused import (GH-5268)
-rw-r--r--Lib/urllib/request.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index a192d527d8..2b769421c5 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -1792,7 +1792,6 @@ class URLopener:
if filename:
tfp = open(filename, 'wb')
else:
- import tempfile
garbage, path = splittype(url)
garbage, path = splithost(path or "")
path, garbage = splitquery(path or "")