summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/request.py
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-01-22 07:45:31 (GMT)
committerGitHub <noreply@github.com>2018-01-22 07:45:31 (GMT)
commit579e0b80b953b8a47385bc50844dbaac45d6f437 (patch)
tree55b78d9ad8232d537af5deed1b338eae70d48288 /Lib/urllib/request.py
parent3510334361d6d39aad89e4e0d9bccd0695668583 (diff)
downloadcpython-579e0b80b953b8a47385bc50844dbaac45d6f437.zip
cpython-579e0b80b953b8a47385bc50844dbaac45d6f437.tar.gz
cpython-579e0b80b953b8a47385bc50844dbaac45d6f437.tar.bz2
urllib.request: Remove unused import (GH-5268)
Diffstat (limited to 'Lib/urllib/request.py')
-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 a192d52..2b76942 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 "")