mirror of
https://github.com/python/cpython.git
synced 2025-09-23 08:53:45 +00:00
Removed redundant code
This commit is contained in:
parent
9125775aa6
commit
016ef551a7
1 changed files with 2 additions and 4 deletions
|
@ -1670,9 +1670,7 @@ 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()
|
||||||
if ottz is not None:
|
|
||||||
otoff = other.utcoffset()
|
otoff = other.utcoffset()
|
||||||
base_compare = myoff == otoff
|
base_compare = myoff == otoff
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue