]> granicus.if.org Git - python/commitdiff
PEP 8 conformance: class_ -> cls
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Wed, 14 Jul 2010 13:46:57 +0000 (13:46 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Wed, 14 Jul 2010 13:46:57 +0000 (13:46 +0000)
Lib/_strptime.py

index a30cb86eca783a0568215e9898a5b78c339a2158..0ea4c431112c439605c46df1a0f4513b450bb980 100644 (file)
@@ -482,8 +482,8 @@ def _strptime_time(data_string, format="%a %b %d %H:%M:%S %Y"):
     tt = _strptime(data_string, format)[0]
     return time.struct_time(tt[:9])
 
-def _strptime_datetime(class_, data_string, format="%a %b %d %H:%M:%S %Y"):
-    """Return a class_ instance based on the input string and the
+def _strptime_datetime(cls, data_string, format="%a %b %d %H:%M:%S %Y"):
+    """Return a class cls instance based on the input string and the
     format string."""
     tt, fraction = _strptime(data_string, format)
     gmtoff, tzname = tt[-2:]
@@ -496,4 +496,4 @@ def _strptime_datetime(class_, data_string, format="%a %b %d %H:%M:%S %Y"):
             tz = datetime_timezone(tzdelta)
         args += (tz,)
 
-    return class_(*args)
+    return cls(*args)