mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
time and socket were already imported in the module, no need to re-import
This commit is contained in:
parent
1ae2875336
commit
aad1849e25
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue