[Python-checkins] CVS: python/dist/src/Lib urllib.py,1.138,1.139

Neal Norwitz nnorwitz@users.sourceforge.net
Tue, 26 Mar 2002 08:25:04 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv1326/Lib

Modified Files:
	urllib.py 
Log Message:
time and socket were already imported in the module, no need to re-import

Index: urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib.py,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** urllib.py	22 Mar 2002 17:30:38 -0000	1.138
--- urllib.py	26 Mar 2002 16:25:01 -0000	1.139
***************
*** 497,501 ****
          # data      := *urlchar
          # parameter := attribute "=" value
!         import StringIO, mimetools, time
          try:
              [type, data] = url.split(',', 1)
--- 497,501 ----
          # data      := *urlchar
          # parameter := attribute "=" value
!         import StringIO, mimetools
          try:
              [type, data] = url.split(',', 1)
***************
*** 1308,1312 ****
              import _winreg
              import re
-             import socket
          except ImportError:
              # Std modules, so should be around - but you never know!
--- 1308,1311 ----
***************
*** 1366,1370 ****
  # Test and time quote() and unquote()
  def test1():
-     import time
      s = ''
      for i in range(256): s = s + chr(i)
--- 1365,1368 ----