diff Lib/datetime.py @ 77451:14028bdd80bc

Removed redundant code
author Alexander Belopolsky <alexander.belopolsky@gmail.com>
date Fri, 15 Jun 2012 18:15:25 -0400
parents 6671c5039e15
children 8272699973cb
line wrap: on
line diff
--- a/Lib/datetime.py	Fri Jun 15 21:53:34 2012 +0100
+++ b/Lib/datetime.py	Fri Jun 15 18:15:25 2012 -0400
@@ -1670,10 +1670,8 @@
         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: