0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Renamed first argument of class method to cls

This commit is contained in:
maurycyp 2013-12-07 20:13:53 -05:00
parent 5c61b8519d
commit e2e2482391

View File

@ -28,7 +28,7 @@ now = datetime.datetime(2012, 3, 9, 22, 30)
class MockDateTime(datetime.datetime):
@classmethod
def now(self, tz=None):
def now(cls, tz=None):
if tz is None or tz.utcoffset(now) is None:
return now
else: