~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ignores.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-19 13:30:31 UTC
  • mfrom: (6355.2.5 absolute-lazy-import)
  • Revision ID: pqm@pqm.ubuntu.com-20111219133031-97tc08321g9zz6dd
(jelmer) Only allow absolute imports using lazy_import. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    atomicfile,
28
28
    config,
29
29
    globbing,
 
30
    trace,
30
31
    )
31
 
 
32
 
from trace import warning
33
32
""")
34
33
 
35
34
# ~/.bazaar/ignore will be filled out using
72
71
                unicode_lines.append(line.decode('utf-8'))
73
72
            except UnicodeDecodeError:
74
73
                # report error about line (idx+1)
75
 
                warning('.bzrignore: On Line #%d, malformed utf8 character. '
 
74
                trace.warning(
 
75
                        '.bzrignore: On Line #%d, malformed utf8 character. '
76
76
                        'Ignoring line.' % (line_number+1))
77
77
 
78
78
    # Append each line to ignore list if it's not a comment line