Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9125775 commit 016ef55Copy full SHA for 016ef55
1 file changed
Lib/datetime.py
@@ -1670,10 +1670,8 @@ def _cmp(self, other):
1670
if mytz is ottz:
1671
base_compare = True
1672
else:
1673
- if mytz is not None:
1674
- myoff = self.utcoffset()
1675
- if ottz is not None:
1676
- otoff = other.utcoffset()
+ myoff = self.utcoffset()
+ otoff = other.utcoffset()
1677
base_compare = myoff == otoff
1678
1679
if base_compare:
0 commit comments