[Python-checkins] r82887 - python/branches/py3k/Lib/_strptime.py

alexander.belopolsky python-checkins at python.org
Wed Jul 14 15:46:57 CEST 2010


Author: alexander.belopolsky
Date: Wed Jul 14 15:46:57 2010
New Revision: 82887

Log:
PEP 8 conformance: class_ -> cls

Modified:
   python/branches/py3k/Lib/_strptime.py

Modified: python/branches/py3k/Lib/_strptime.py
==============================================================================
--- python/branches/py3k/Lib/_strptime.py	(original)
+++ python/branches/py3k/Lib/_strptime.py	Wed Jul 14 15:46:57 2010
@@ -482,8 +482,8 @@
     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 @@
             tz = datetime_timezone(tzdelta)
         args += (tz,)
 
-    return class_(*args)
+    return cls(*args)


More information about the Python-checkins mailing list