utils.py
changeset 7569 02c338197322
parent 7423 598a4f051259
parent 7568 c5ee33fb6a3b
child 7575 335f14e8e5a7
--- a/utils.py	Mon Jun 27 18:48:30 2011 +0200
+++ b/utils.py	Tue Jun 28 16:33:53 2011 +0200
@@ -116,11 +116,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)
@@ -128,6 +128,7 @@
     >>> l
     [1, 2]
     >>> l.append(3)
+    >>> l
     [2, 3]
     """
     def __init__(self, maxsize):