From a33c0670fd1d6e3f5b9fbec20fef8e9e835b67a7 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 21 Oct 2012 21:16:52 +0100 Subject: [PATCH] More idiomatic way to call FixedOffsetTimezone.__new__ superclass --- lib/tz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tz.py b/lib/tz.py index a9adcd8f..ec63f6c0 100644 --- a/lib/tz.py +++ b/lib/tz.py @@ -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