diff options
Diffstat (limited to 'dateutil/relativedelta.py')
-rw-r--r-- | dateutil/relativedelta.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dateutil/relativedelta.py b/dateutil/relativedelta.py index 2b5557a..da05572 100644 --- a/dateutil/relativedelta.py +++ b/dateutil/relativedelta.py @@ -375,6 +375,8 @@ Here is the behavior of operations with relativedelta: self.minute is None and self.second is None and self.microsecond is None) + # Compatibility with Python 2.x + __nonzero__ = __bool__ def __mul__(self, other): f = float(other) |