Mercurial > cpython-lru_cache-weakref
changeset 54345:cdfd017cee90 legacy-trunk
#6112: list.remove raises ValueError, not RuntimeError.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Tue, 26 May 2009 07:50:23 +0000 |
| parents | aac26de8b5d0 |
| children | ba305fe8e831 |
| files | Doc/library/sched.rst Lib/sched.py |
| diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Doc/library/sched.rst Tue May 26 04:12:39 2009 +0000 +++ b/Doc/library/sched.rst Tue May 26 07:50:23 2009 +0000 @@ -100,7 +100,7 @@ .. 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()
--- a/Lib/sched.py Tue May 26 04:12:39 2009 +0000 +++ b/Lib/sched.py Tue May 26 07:50:23 2009 +0000 @@ -67,7 +67,7 @@ """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)
