]> granicus.if.org Git - python/commitdiff
#6112: list.remove raises ValueError, not RuntimeError.
authorGeorg Brandl <georg@python.org>
Tue, 26 May 2009 07:50:23 +0000 (07:50 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 26 May 2009 07:50:23 +0000 (07:50 +0000)
Doc/library/sched.rst
Lib/sched.py

index 2283077bd0dc89e1f014e4396604310fc10a5fa0..51b9d3fb660de1df366e8943d67eaa671fb32a49 100644 (file)
@@ -100,7 +100,7 @@ Scheduler Objects
 .. method:: scheduler.cancel(event)
 
    Remove the event from the queue. If *event* is not an event currently in the
-   queue, this method will raise a :exc:`RuntimeError`.
+   queue, this method will raise a :exc:`ValueError`.
 
 
 .. method:: scheduler.empty()
index aecdb2a47554aa86599cb353a0aec610a902a2dc..f0da8291fe9ab1da69931710b2240b2c3150c37d 100644 (file)
@@ -67,7 +67,7 @@ class scheduler:
         """Remove an event from the queue.
 
         This must be presented the ID as returned by enter().
-        If the event is not in the queue, this raises RuntimeError.
+        If the event is not in the queue, this raises ValueError.
 
         """
         self._queue.remove(event)