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

Fred L. Drake python-dev@python.org
Sat, 1 Jul 2000 00:03:32 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv12547/Lib
Modified Files:
	urllib.py 
Log Message:
Fix bug #314, reported by Craig Allen <cba@mediaone.net>:
splittype(): Always lower-case the URL scheme; these are supposed to be
 normalized according to RFC 1738 anyway.
Index: urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib.py,v
retrieving revision 1.95
retrieving revision 1.96
diff -C2 -r1.95 -r1.96
*** urllib.py	2000年06月10日 01:41:48	1.95
--- urllib.py	2000年07月01日 07:03:30	1.96
***************
*** 849,853 ****
 if match:
 scheme = match.group(1)
! return scheme, url[len(scheme) + 1:]
 return None, url
 
--- 849,853 ----
 if match:
 scheme = match.group(1)
! return scheme.lower(), url[len(scheme) + 1:]
 return None, url
 

AltStyle によって変換されたページ (->オリジナル) /