pycompat: move the queue related definitions below queue import
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 16 Jun 2017 03:01:22 +0530
changeset 32865 6e38b4212661
parent 32864 f57f1f37290d
child 32866 fa247f53f647
pycompat: move the queue related definitions below queue import This helps in understanding why empty and queue are there.
mercurial/pycompat.py
--- a/mercurial/pycompat.py	Fri Jun 16 02:48:17 2017 +0530
+++ b/mercurial/pycompat.py	Fri Jun 16 03:01:22 2017 +0530
@@ -32,6 +32,9 @@
     import socketserver
     import xmlrpc.client as xmlrpclib
 
+empty = _queue.Empty
+queue = _queue.Queue
+
 def identity(a):
     return a
 
@@ -309,9 +312,6 @@
     stringio = cStringIO.StringIO
     maplist = map
 
-empty = _queue.Empty
-queue = _queue.Queue
-
 class _pycompatstub(object):
     def __init__(self):
         self._aliases = {}