Mercurial > public > mercurial-scm > hg-stable
diff mercurial/treediscovery.py @ 25113:0ca8410ea345
util: drop alias for collections.deque
Now that util.deque is just an alias for collections.deque, let's just
remove it.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 16 May 2015 11:28:04 -0700 |
parents | d2704c48f417 |
children | c6d049a5de43 |
line wrap: on
line diff
--- a/mercurial/treediscovery.py Sat May 16 09:03:21 2015 +0200 +++ b/mercurial/treediscovery.py Sat May 16 11:28:04 2015 -0700 @@ -5,6 +5,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. +import collections from node import nullid, short from i18n import _ import util, error @@ -56,7 +57,7 @@ # a 'branch' here is a linear segment of history, with four parts: # head, root, first parent, second parent # (a branch always has two parents (or none) by definition) - unknown = util.deque(remote.branches(unknown)) + unknown = collections.deque(remote.branches(unknown)) while unknown: r = [] while unknown: