diff options
Diffstat (limited to 'Lib/rfc822.py')
-rw-r--r-- | Lib/rfc822.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 0ef0d97..a9109cd 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -850,6 +850,11 @@ def parsedate_tz(data): if data[0][-1] in (',', '.') or data[0].lower() in _daynames: # There's a dayname here. Skip it del data[0] + else: + # no space after the "weekday,"? + i = data[0].rfind(',') + if i >= 0: + data[0] = data[0][i+1:] if len(data) == 3: # RFC 850 date, deprecated stuff = data[0].split('-') if len(stuff) == 3: |