diff --git a/swift/common/utils.py b/swift/common/utils.py index 5abac786cf..ce28cea9a7 100644 --- a/swift/common/utils.py +++ b/swift/common/utils.py @@ -794,6 +794,9 @@ class Timestamp(object): def __nonzero__(self): return bool(self.timestamp or self.offset) + def __bool__(self): + return self.__nonzero__() + @property def normal(self): return NORMAL_FORMAT % self.timestamp