Kaydet (Commit) 4ee82822 authored tarafından Georg Brandl's avatar Georg Brandl

#6112: list.remove raises ValueError, not RuntimeError.

üst 57bef68b
......@@ -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()
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment