changeset 32865:6e38b4212661

pycompat: move the queue related definitions below queue import This helps in understanding why empty and queue are there.
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 16 Jun 2017 03:01:22 +0530
parents f57f1f37290d
children fa247f53f647
files mercurial/pycompat.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}