/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/_known_graph_pyx.pyx

  • Committer: Jelmer Vernooij
  • Date: 2017-10-28 12:46:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6802.
  • Revision ID: jelmer@jelmer.uk-20171028124654-cuadqu97uj147lfx
Avoid modifying possibly lazily imported module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
    void Py_INCREF(object)
55
55
 
56
 
from collections import deque
 
56
import collections
57
57
import gc
58
58
 
59
59
from . import errors, revision
400
400
        # We use a deque rather than a simple list stack, to go for BFD rather
401
401
        # than DFD. So that if a longer path is possible, we walk it before we
402
402
        # get to the final child
403
 
        pending = deque([node])
 
403
        pending = collections.deque([node])
404
404
        pending_popleft = pending.popleft
405
405
        pending_append = pending.append
406
406
        while pending: