More idiomatic way to call FixedOffsetTimezone.__new__ superclass

This commit is contained in:
Daniele Varrazzo 2012-10-21 21:16:52 +01:00
parent f5f2e2c092
commit a33c0670fd

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