summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2012-06-15 22:15:25 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2012-06-15 22:15:25 (GMT)
commit016ef551a793f72f582d707ce5bb55bf4940cf27 (patch)
tree95ed8d883996e2ad0d92c989a58df3f70ec7c602
parent9125775aa6f98541c5357e0153bd5fd067353469 (diff)
downloadcpython-016ef551a793f72f582d707ce5bb55bf4940cf27.zip
cpython-016ef551a793f72f582d707ce5bb55bf4940cf27.tar.gz
cpython-016ef551a793f72f582d707ce5bb55bf4940cf27.tar.bz2
Removed redundant code
-rw-r--r--Lib/datetime.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py
index 5d8d9b3..21aab35 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: