Commit 53864312 authored by Alexander Belopolsky's avatar Alexander Belopolsky

Removed redundant code

parent 14b31fe3
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment