~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ignores.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-05 12:45:06 UTC
  • mfrom: (5745.2.2 ignores-lazy-import)
  • Revision ID: pqm@pqm.ubuntu.com-20110405124506-adr9eam4dhbdz1fj
(jelmer) Use lazy imports in bzrlib.ignores. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from cStringIO import StringIO
22
22
 
23
23
import bzrlib
 
24
from bzrlib.lazy_import import lazy_import
 
25
lazy_import(globals(), """
24
26
from bzrlib import (
25
27
    atomicfile,
26
28
    config,
28
30
    )
29
31
 
30
32
from trace import warning
 
33
""")
31
34
 
32
35
# ~/.bazaar/ignore will be filled out using
33
36
# this ignore list, if it does not exist