diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-26 16:25:01 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-26 16:25:01 (GMT) |
commit | aad1849e25cf329b1c3f28908ae5abd4b1a1f460 (patch) | |
tree | 9abde8be492cb9e6d4d2daf01b7c5886c58dd36a /Lib/urllib.py | |
parent | 1ae2875336a6af52677eb7292a3416327fff72f9 (diff) | |
download | cpython-aad1849e25cf329b1c3f28908ae5abd4b1a1f460.zip cpython-aad1849e25cf329b1c3f28908ae5abd4b1a1f460.tar.gz cpython-aad1849e25cf329b1c3f28908ae5abd4b1a1f460.tar.bz2 |
time and socket were already imported in the module, no need to re-import
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r-- | Lib/urllib.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index 6faba77..2ba5590 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -496,7 +496,7 @@ class URLopener: # mediatype := [ type "/" subtype ] *( ";" parameter ) # data := *urlchar # parameter := attribute "=" value - import StringIO, mimetools, time + import StringIO, mimetools try: [type, data] = url.split(',', 1) except ValueError: @@ -1307,7 +1307,6 @@ elif os.name == 'nt': try: import _winreg import re - import socket except ImportError: # Std modules, so should be around - but you never know! return 0 @@ -1365,7 +1364,6 @@ else: # Test and time quote() and unquote() def test1(): - import time s = '' for i in range(256): s = s + chr(i) s = s*4 |