[Python-checkins] python/dist/src/Lib urllib2.py,1.64,1.65 (original) (raw)
loewis at users.sourceforge.net loewis at users.sourceforge.net
Wed May 5 21:41:28 EDT 2004
- Previous message: [Python-checkins] python/dist/src/Misc NEWS, 1.831.4.102, 1.831.4.103
- Next message: [Python-checkins] python/dist/src/Doc/whatsnew whatsnew24.tex, 1.40, 1.41
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5630
Modified Files: urllib2.py Log Message: Patch #944110: Properly process empty passwords. Fixes #944082. Backported to 2.3.
Index: urllib2.py
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** urllib2.py 6 Apr 2004 19:43:03 -0000 1.64 --- urllib2.py 6 May 2004 01:41:26 -0000 1.65
*** 697,701 **** def retry_http_basic_auth(self, host, req, realm): user,pw = self.passwd.find_user_password(realm, host) ! if pw: raw = "%s:%s" % (user, pw) auth = 'Basic %s' % base64.encodestring(raw).strip() --- 697,701 ---- def retry_http_basic_auth(self, host, req, realm): user,pw = self.passwd.find_user_password(realm, host) ! if pw is not None: raw = "%s:%s" % (user, pw) auth = 'Basic %s' % base64.encodestring(raw).strip()
- Previous message: [Python-checkins] python/dist/src/Misc NEWS, 1.831.4.102, 1.831.4.103
- Next message: [Python-checkins] python/dist/src/Doc/whatsnew whatsnew24.tex, 1.40, 1.41
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]