Mercurial > hg > mercurial-source
changeset 33648: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 +++ b/mercurial/pycompat.py @@ -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 = {}