summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 "")