]> granicus.if.org Git - python/commitdiff
Removed redundant code
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 15 Jun 2012 22:15:25 +0000 (18:15 -0400)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 15 Jun 2012 22:15:25 +0000 (18:15 -0400)
Lib/datetime.py

index 5d8d9b3dfcec235881186bc1e59a378aa81b6b75..21aab35604c246f86673a0c312989e0a3c9d0e6e 100644 (file)
@@ -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: