diff options
author | Brett Cannon <brett@python.org> | 2012-06-15 19:04:29 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-06-15 19:04:29 -0400 |
commit | 24aa693c7ef8f217fbd238eb7af7d828e13a07eb (patch) | |
tree | 7d01ab630c2e8eef1e168b1aa5d84131b60cfd50 /Lib/datetime.py | |
parent | 99d776fdf4aa5a66266ebcec2263fab501f03088 (diff) | |
parent | 016ef551a793f72f582d707ce5bb55bf4940cf27 (diff) | |
download | cpython-git-24aa693c7ef8f217fbd238eb7af7d828e13a07eb.tar.gz |
Merge
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r-- | Lib/datetime.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py index 5d8d9b3dfc..21aab35604 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -1670,10 +1670,8 @@ class datetime(date): 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: |