mirror of https://github.com/django/django.git
Merge pull request #2050 from maurycyp/master
Renamed first argument of class method to cls
This commit is contained in:
commit
d653c0bd2e
|
@ -28,7 +28,7 @@ now = datetime.datetime(2012, 3, 9, 22, 30)
|
||||||
|
|
||||||
class MockDateTime(datetime.datetime):
|
class MockDateTime(datetime.datetime):
|
||||||
@classmethod
|
@classmethod
|
||||||
def now(self, tz=None):
|
def now(cls, tz=None):
|
||||||
if tz is None or tz.utcoffset(now) is None:
|
if tz is None or tz.utcoffset(now) is None:
|
||||||
return now
|
return now
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue