diff --git a/mitogen/parent.py b/mitogen/parent.py index ce4d3c63..375c5622 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -508,12 +508,18 @@ class Timer(object): self.when = when self.func = func + def __repr__(self): + return 'Timer(%r, %r)' % (self.when, self.func) + def __eq__(self, other): return self.when == other.when def __lt__(self, other): return self.when < other.when + def __le__(self, other): + return self.when <= other.when + def cancel(self): """ Cancel this event. If it has not yet executed, it will not execute