# HG changeset patch # User mcroydon # Date 1272643087 0 # Node ID 331d96e6a133a99c71a0c77ad058f28d33ab3554 # Parent b4184f99ed13cd84246c6e00d06e3c3f36f6a922 Fixed NameError in the delete_queue method in the dummy backend. Thanks for the report, cleifer. diff -r b4184f99ed13 -r 331d96e6a133 queues/backends/dummy.py --- a/queues/backends/dummy.py Tue Oct 20 22:01:12 2009 +0000 +++ b/queues/backends/dummy.py Fri Apr 30 15:58:07 2010 +0000 @@ -49,10 +49,8 @@ def delete_queue(name): """Just start afresh.""" try: - while True: - dummy_queue.get(block=False) - except queue.Empty: - # Yay, exhausted. + del queues[name] + except KeyError: pass