[Python-checkins] CVS: python/dist/src/Lib nturl2path.py,1.10,1.11

Fred L. Drake fdrake@users.sourceforge.net
Fri, 20 Jul 2001 11:52:04 -0700


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

Modified Files:
	nturl2path.py 
Log Message:

Use string.ascii_letters instead of string.letters.
Remove unused import.


Index: nturl2path.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/nturl2path.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** nturl2path.py	2001/02/18 03:30:53	1.10
--- nturl2path.py	2001/07/20 18:52:02	1.11
***************
*** 22,26 ****
          return urllib.unquote('\\'.join(components))
      comp = url.split('|')
!     if len(comp) != 2 or comp[0][-1] not in string.letters:
          error = 'Bad URL: ' + url
          raise IOError, error
--- 22,26 ----
          return urllib.unquote('\\'.join(components))
      comp = url.split('|')
!     if len(comp) != 2 or comp[0][-1] not in string.ascii_letters:
          error = 'Bad URL: ' + url
          raise IOError, error
***************
*** 43,47 ****
      """
  
!     import string, urllib
      if not ':' in p:
          # No drive specifier, just convert slashes and quote the name
--- 43,47 ----
      """
  
!     import urllib
      if not ':' in p:
          # No drive specifier, just convert slashes and quote the name