summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/rfc822.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index 1ea2f5f..f34f0b6 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -417,6 +417,10 @@ def parsedate_tz(data):
if data[0][-1] == ',':
# There's a dayname here. Skip it
del data[0]
+ if len(data) == 3: # RFC 850 date, deprecated
+ stuff = string.split(data[0], '-')
+ if len(stuff) == 3:
+ data = stuff + data[1:]
if len(data) == 4:
s = data[3]
i = string.find(s, '+')