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

Moshe Zadka python-dev@python.org
Sun, 07 Jan 2001 23:09:27 -0800


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

Modified Files:
	urllib.py 
Log Message:
Fixed bug which caused HTTPS not to work at all with string URLs


Index: urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib.py,v
retrieving revision 1.109
retrieving revision 1.110
diff -C2 -r1.109 -r1.110
*** urllib.py	2000/12/15 15:01:37	1.109
--- urllib.py	2001/01/08 07:09:25	1.110
***************
*** 314,318 ****
              import httplib
              user_passwd = None
!             if type(url) in types.StringTypes:
                  host, selector = splithost(url)
                  if host:
--- 314,318 ----
              import httplib
              user_passwd = None
!             if type(url) is types.StringType:
                  host, selector = splithost(url)
                  if host: