commit 33e471ad027fd303c1adfc85e40922aeb9feca46 Author: Isis Lovecruft isis@torproject.org Date: Fri Dec 20 07:01:18 2013 +0000
Fix docstring context for bridgedb.Time.IntervalSchedule. --- lib/bridgedb/Time.py | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/lib/bridgedb/Time.py b/lib/bridgedb/Time.py index 8d7c65a..57ba69f 100644 --- a/lib/bridgedb/Time.py +++ b/lib/bridgedb/Time.py @@ -68,6 +68,8 @@ class IntervalSchedule(Schedule): """Return a string representing the interval that contains the time 'when'.
+ >>> import calendar + >>> from bridgedb.Time import IntervalSchedule >>> t = calendar.timegm((2007, 12, 12, 0, 0, 0)) >>> I = IntervalSchedule('month', 1) >>> I.getInterval(t)