mercurial/pycompat.py
changeset 28818 6041fb8f2da8
child 28833 672fc23bf9cc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/pycompat.py	Wed Apr 06 20:00:49 2016 +0000
@@ -0,0 +1,18 @@
+# pycompat.py - portability shim for python 3
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2 or any later version.
+
+"""Mercurial portability shim for python 3.
+
+This contains aliases to hide python version-specific details from the core.
+"""
+
+from __future__ import absolute_import
+
+try:
+    import Queue as _queue
+except ImportError:
+    import queue as _queue
+empty = _queue.Empty
+queue = _queue.Queue