[pypy-commit] pypy py3.7: Make queue importable

rlamy pypy.commits at gmail.com
Fri Aug 30 21:05:57 EDT 2019


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.7
Changeset: r97348:7697e979053f
Date: 2019-08-31 02:04 +0100
http://bitbucket.org/pypy/pypy/changeset/7697e979053f/

Log:	Make queue importable

diff --git a/lib-python/3/queue.py b/lib-python/3/queue.py
--- a/lib-python/3/queue.py
+++ b/lib-python/3/queue.py
@@ -14,7 +14,7 @@
 
 try:
     from _queue import Empty
-except AttributeError:
+except (AttributeError, ImportError):
     class Empty(Exception):
         'Exception raised by Queue.get(block=0)/get_nowait().'
         pass


More information about the pypy-commit mailing list