From: Alexander Belopolsky Date: Fri, 15 Jun 2012 22:15:25 +0000 (-0400) Subject: Removed redundant code X-Git-Tag: v3.3.0b1~237^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=016ef551a793f72f582d707ce5bb55bf4940cf27;p=python Removed redundant code --- diff --git a/Lib/datetime.py b/Lib/datetime.py index 5d8d9b3dfc..21aab35604 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -1670,10 +1670,8 @@ class datetime(date): if mytz is ottz: base_compare = True else: - if mytz is not None: - myoff = self.utcoffset() - if ottz is not None: - otoff = other.utcoffset() + myoff = self.utcoffset() + otoff = other.utcoffset() base_compare = myoff == otoff if base_compare: