More idiomatic way to call FixedOffsetTimezone.__new__ superclass

This commit is contained in:
Daniele Varrazzo 2012-10-21 21:16:52 +01:00
parent e4a07c3a30
commit 790843a48a

View File

@ -63,7 +63,7 @@ class FixedOffsetTimezone(datetime.tzinfo):
try:
return cls._cache[key]
except KeyError:
tz = datetime.tzinfo.__new__(cls, offset, name)
tz = super(FixedOffsetTimezone, cls).__new__(cls, offset, name)
cls._cache[key] = tz
return tz