]> granicus.if.org Git - python/commitdiff
urllib.request: Remove unused import (GH-5268)
authorINADA Naoki <methane@users.noreply.github.com>
Mon, 22 Jan 2018 07:45:31 +0000 (16:45 +0900)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2018 07:45:31 +0000 (16:45 +0900)
Lib/urllib/request.py

index a192d527d8bc9a4fac7e46c77041e3aa9da35b1a..2b769421c56a7e4524c7e7bdc9e084c1b8f58897 100644 (file)
@@ -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 "")