diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-03-20 23:00:35 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-03-20 23:00:35 (GMT) |
commit | ee6bdc07d65d5df418ad9dc2bb7139666af9a6b2 (patch) | |
tree | adb181a1a208c65822fb533fdeae01244862f006 /Lib/datetime.py | |
parent | 265ae86414f2a70643bad4b487f07da1c2bba50a (diff) | |
download | cpython-ee6bdc07d65d5df418ad9dc2bb7139666af9a6b2.zip cpython-ee6bdc07d65d5df418ad9dc2bb7139666af9a6b2.tar.gz cpython-ee6bdc07d65d5df418ad9dc2bb7139666af9a6b2.tar.bz2 |
remove the ability of datetime.time to be considered false (closes #13936)
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r-- | Lib/datetime.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py index 1789714..3c534d0 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -1249,12 +1249,6 @@ class time: _check_tzinfo_arg(tzinfo) return time(hour, minute, second, microsecond, tzinfo) - def __bool__(self): - if self.second or self.microsecond: - return True - offset = self.utcoffset() or timedelta(0) - return timedelta(hours=self.hour, minutes=self.minute) != offset - # Pickle support. def _getstate(self): |