~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ignores.py

  • Committer: Samuel Bronson
  • Date: 2012-08-30 20:36:18 UTC
  • mto: (6015.57.3 2.4)
  • mto: This revision was merged to the branch mainline in revision 6558.
  • Revision ID: naesten@gmail.com-20120830203618-y2dzw91nqpvpgxvx
Update INSTALL for switch to Python 2.6 and up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Lists of ignore files, etc."""
18
18
 
19
 
from __future__ import absolute_import
20
 
 
21
19
import errno
22
20
import os
23
21
from cStringIO import StringIO
29
27
    atomicfile,
30
28
    config,
31
29
    globbing,
32
 
    trace,
33
30
    )
 
31
 
 
32
from trace import warning
34
33
""")
35
34
 
36
35
# ~/.bazaar/ignore will be filled out using
73
72
                unicode_lines.append(line.decode('utf-8'))
74
73
            except UnicodeDecodeError:
75
74
                # report error about line (idx+1)
76
 
                trace.warning(
77
 
                        '.bzrignore: On Line #%d, malformed utf8 character. '
 
75
                warning('.bzrignore: On Line #%d, malformed utf8 character. '
78
76
                        'Ignoring line.' % (line_number+1))
79
77
 
80
78
    # Append each line to ignore list if it's not a comment line