summaryrefslogtreecommitdiff
path: root/Lib/_strptime.py
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-14 13:46:57 +0000
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-14 13:46:57 +0000
commitffec346a6a59e849f24cdbdf3a26bc5f5123b4e4 (patch)
treee04527ca95cfcb805ae6742587ebc012735f45d0 /Lib/_strptime.py
parentcf4c7623d7c6043fbbf6b0430b1e52d63870b56c (diff)
downloadcpython-ffec346a6a59e849f24cdbdf3a26bc5f5123b4e4.tar.gz
PEP 8 conformance: class_ -> cls
Diffstat (limited to 'Lib/_strptime.py')
-rw-r--r--Lib/_strptime.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py
index a30cb86eca..0ea4c43111 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -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)