[CalendarServer-changes] [12665] CalendarServer/trunk/txweb2/http_headers.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:24:05 PDT 2014


Revision: 12665
          http://trac.calendarserver.org//changeset/12665
Author:   cdaboo at apple.com
Date:     2014-02-11 18:17:03 -0800 (Tue, 11 Feb 2014)
Log Message:
-----------
pyflakiness.

Modified Paths:
--------------
    CalendarServer/trunk/txweb2/http_headers.py

Modified: CalendarServer/trunk/txweb2/http_headers.py
===================================================================
--- CalendarServer/trunk/txweb2/http_headers.py	2014-02-12 02:06:50 UTC (rev 12664)
+++ CalendarServer/trunk/txweb2/http_headers.py	2014-02-12 02:17:03 UTC (rev 12665)
@@ -212,14 +212,14 @@
         day = parts[1]
         month = parts[2]
         year = parts[3]
-        time = parts[4]
+        time_part = parts[4]
     elif (partlen == 3 or partlen == 4) and parts[1].find('-') != -1:
         # 2nd date format: Sunday, 06-Nov-94 08:49:37 GMT
         # (Note: "GMT" is literal, not a variable timezone)
         # (also handles without without "GMT")
         # Two digit year, yucko.
         day, month, year = parts[1].split('-')
-        time = parts[2]
+        time_part = parts[2]
         year = int(year)
         if year < 69:
             year = year + 2000
@@ -231,14 +231,14 @@
         day = parts[2]
         month = parts[1]
         year = parts[4]
-        time = parts[3]
+        time_part = parts[3]
     else:
         raise ValueError("Unknown datetime format %r" % dateString)
 
     day = int(day)
     month = int(monthname_lower.index(month.lower()))
     year = int(year)
-    hour, min, sec = map(int, time.split(':'))
+    hour, min, sec = map(int, time_part.split(':'))
     return int(timegm((year, month, day, hour, min, sec)))
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/c776916c/attachment.html>


More information about the calendarserver-changes mailing list