Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 016ef55

Browse files
committed
Removed redundant code
1 parent 9125775 commit 016ef55

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/datetime.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,10 +1670,8 @@ def _cmp(self, other):
16701670
if mytz is ottz:
16711671
base_compare = True
16721672
else:
1673-
if mytz is not None:
1674-
myoff = self.utcoffset()
1675-
if ottz is not None:
1676-
otoff = other.utcoffset()
1673+
myoff = self.utcoffset()
1674+
otoff = other.utcoffset()
16771675
base_compare = myoff == otoff
16781676

16791677
if base_compare:

0 commit comments

Comments
 (0)