Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…roduce 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
  • Loading branch information...
commit d50f59ee18f6f1241f4d14d7218b6fb64ce9c3b5 1 parent e8fa1ab
Ramiro Morales authored March 03, 2011

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  django/utils/http.py
5  django/utils/http.py
@@ -105,7 +105,10 @@ def parse_http_date(date):
105 105
     try:
106 106
         year = int(m.group('year'))
107 107
         if year < 100:
108  
-            year += 2000 if year < 70 else 1900
  108
+            if year < 70:
  109
+                year += 2000
  110
+            else:
  111
+                year += 1900
109 112
         month = MONTHS.index(m.group('mon').lower()) + 1
110 113
         day = int(m.group('day'))
111 114
         hour = int(m.group('hour'))

0 notes on commit d50f59e

Please sign in to comment.
Something went wrong with that request. Please try again.