Removed redundant code
This commit is contained in:
parent
9125775aa6
commit
016ef551a7
|
@ -1670,10 +1670,8 @@ class datetime(date):
|
||||||
if mytz is ottz:
|
if mytz is ottz:
|
||||||
base_compare = True
|
base_compare = True
|
||||||
else:
|
else:
|
||||||
if mytz is not None:
|
myoff = self.utcoffset()
|
||||||
myoff = self.utcoffset()
|
otoff = other.utcoffset()
|
||||||
if ottz is not None:
|
|
||||||
otoff = other.utcoffset()
|
|
||||||
base_compare = myoff == otoff
|
base_compare = myoff == otoff
|
||||||
|
|
||||||
if base_compare:
|
if base_compare:
|
||||||
|
|
Loading…
Reference in New Issue