[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/master] Fix docstring context for bridgedb.Time.IntervalSchedule.



commit 33e471ad027fd303c1adfc85e40922aeb9feca46
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits