Commit 5caec7ca authored by Neal Norwitz's avatar Neal Norwitz

time and socket were already imported in the module, no need to re-import

parent cceb69ae
...@@ -496,7 +496,7 @@ class URLopener: ...@@ -496,7 +496,7 @@ class URLopener:
# mediatype := [ type "/" subtype ] *( ";" parameter ) # mediatype := [ type "/" subtype ] *( ";" parameter )
# data := *urlchar # data := *urlchar
# parameter := attribute "=" value # parameter := attribute "=" value
import StringIO, mimetools, time import StringIO, mimetools
try: try:
[type, data] = url.split(',', 1) [type, data] = url.split(',', 1)
except ValueError: except ValueError:
...@@ -1307,7 +1307,6 @@ elif os.name == 'nt': ...@@ -1307,7 +1307,6 @@ elif os.name == 'nt':
try: try:
import _winreg import _winreg
import re import re
import socket
except ImportError: except ImportError:
# Std modules, so should be around - but you never know! # Std modules, so should be around - but you never know!
return 0 return 0
...@@ -1365,7 +1364,6 @@ else: ...@@ -1365,7 +1364,6 @@ else:
# Test and time quote() and unquote() # Test and time quote() and unquote()
def test1(): def test1():
import time
s = '' s = ''
for i in range(256): s = s + chr(i) for i in range(256): s = s + chr(i)
s = s*4 s = s*4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment