# HG changeset patch # User timeless # Date 1460124185 0 # Node ID 672fc23bf9cc5235d680eeab1801514d0f091f95 # Parent f5ff10f6fa6bfee4cd6808afbc61b062269596bd pycompat: fix demand import handling of Queue When demandimport is enabled, simply importing a non existent module does not trigger ImportError, a property access is necessary. diff -r f5ff10f6fa6b -r 672fc23bf9cc mercurial/pycompat.py --- a/mercurial/pycompat.py Tue Mar 29 17:43:23 2016 +0000 +++ b/mercurial/pycompat.py Fri Apr 08 14:03:05 2016 +0000 @@ -12,6 +12,7 @@ try: import Queue as _queue + _queue.Queue except ImportError: import queue as _queue empty = _queue.Empty