Removed redundant code

This commit is contained in:
Alexander Belopolsky 2012-06-15 18:15:25 -04:00
parent 9125775aa6
commit 016ef551a7
1 changed files with 2 additions and 4 deletions

View File

@ -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: