[Python-checkins] cpython: Removed redundant code
alexander.belopolsky
python-checkins at python.org
Sat Jun 16 00:15:40 CEST 2012
http://hg.python.org/cpython/rev/14028bdd80bc
changeset: 77451:14028bdd80bc
user: Alexander Belopolsky <alexander.belopolsky at gmail.com>
date: Fri Jun 15 18:15:25 2012 -0400
summary:
Removed redundant code
files:
Lib/datetime.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/Lib/datetime.py b/Lib/datetime.py
--- a/Lib/datetime.py
+++ b/Lib/datetime.py
@@ -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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list