Kaydet (Commit) d50f59ee authored tarafından Ramiro Morales's avatar Ramiro Morales

Fixed #15543 -- Tweaked change from r15696 to not use 'if' syntax introduce in…

Fixed #15543 -- Tweaked change from r15696 to not use 'if' syntax introduce in Python 2.5. Thanks to an anonymous reporter for the heads up.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst e8fa1abd
......@@ -105,7 +105,10 @@ def parse_http_date(date):
try:
year = int(m.group('year'))
if year < 100:
year += 2000 if year < 70 else 1900
if year < 70:
year += 2000
else:
year += 1900
month = MONTHS.index(m.group('mon').lower()) + 1
day = int(m.group('day'))
hour = int(m.group('hour'))
......
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