Kaydet (Commit) b5dc39f0 authored tarafından Barry Warsaw's avatar Barry Warsaw

parsedate_tz(): Be slightly more lenient when there's no day of the

week.  Patch given by Daniel Berlin in SF bug # 732761.  Also closes
SF bug # 727719.

Backport candidate.
üst 86e1790c
...@@ -54,8 +54,7 @@ def parsedate_tz(data): ...@@ -54,8 +54,7 @@ def parsedate_tz(data):
del data[0] del data[0]
else: else:
i = data[0].rfind(',') i = data[0].rfind(',')
if i < 0: if i >= 0:
return None
data[0] = data[0][i+1:] data[0] = data[0][i+1:]
if len(data) == 3: # RFC 850 date, deprecated if len(data) == 3: # RFC 850 date, deprecated
stuff = data[0].split('-') stuff = data[0].split('-')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment