[Python-checkins] CVS: python/dist/src/Lib rfc822.py,1.63,1.64

Barry Warsaw bwarsaw@users.sourceforge.net
2001年11月13日 10:00:42 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv9389/Lib
Modified Files:
	rfc822.py 
Log Message:
parsedate_tz(): If data is false, return None. Fixes bug #478115,
IndexError when a Date: field exists with an empty value.
Index: rfc822.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/rfc822.py,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** rfc822.py	2001年09月04日 19:14:14	1.63
--- rfc822.py	2001年11月13日 18:00:40	1.64
***************
*** 859,862 ****
--- 859,864 ----
 Accounts for military timezones.
 """
+ if not data:
+ return None
 data = data.split()
 if data[0][-1] in (',', '.') or data[0].lower() in _daynames:

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