utils.py
branchstable
changeset 7568 c5ee33fb6a3b
parent 7268 cd14e03124be
child 7569 02c338197322
--- a/utils.py	Tue Jun 28 13:16:09 2011 +0200
+++ b/utils.py	Tue Jun 28 16:32:38 2011 +0200
@@ -130,11 +130,11 @@
 
 
 class SizeConstrainedList(list):
-    """simple list that makes sure the list does not get bigger
-    than a given size.
+    """simple list that makes sure the list does not get bigger than a given
+    size.
 
-    when the list is full and a new element is added, the first
-    element of the list is removed before appending the new one
+    when the list is full and a new element is added, the first element of the
+    list is removed before appending the new one
 
     >>> l = SizeConstrainedList(2)
     >>> l.append(1)
@@ -142,6 +142,7 @@
     >>> l
     [1, 2]
     >>> l.append(3)
+    >>> l
     [2, 3]
     """
     def __init__(self, maxsize):