commit | 016ef551a793f72f582d707ce5bb55bf4940cf27 | [log] [tgz] |
---|---|---|
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Fri Jun 15 18:15:25 2012 -0400 |
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Fri Jun 15 18:15:25 2012 -0400 |
tree | 95ed8d883996e2ad0d92c989a58df3f70ec7c602 | |
parent | 9125775aa6f98541c5357e0153bd5fd067353469 [diff] [blame] |
Removed redundant code
diff --git a/Lib/datetime.py b/Lib/datetime.py index 5d8d9b3..21aab35 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py
@@ -1670,10 +1670,8 @@ 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: