urllib.request: Remove unused import (GH-5268)
This commit is contained in:
parent
3510334361
commit
579e0b80b9
@ -1792,7 +1792,6 @@ class URLopener:
|
|||||||
if filename:
|
if filename:
|
||||||
tfp = open(filename, 'wb')
|
tfp = open(filename, 'wb')
|
||||||
else:
|
else:
|
||||||
import tempfile
|
|
||||||
garbage, path = splittype(url)
|
garbage, path = splittype(url)
|
||||||
garbage, path = splithost(path or "")
|
garbage, path = splithost(path or "")
|
||||||
path, garbage = splitquery(path or "")
|
path, garbage = splitquery(path or "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user