/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/tests/test_errors.py

  • Committer: Jelmer Vernooij
  • Date: 2017-10-27 00:18:42 UTC
  • mto: This revision was merged to the branch mainline in revision 6799.
  • Revision ID: jelmer@jelmer.uk-20171027001842-o77sekj0g2t2zwbn
Properly escape backslashes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        Python 2.5 uses a slot for StandardError.message.
44
44
        See bug #603461
45
45
        """
46
 
        fmt_pattern = re.compile("%\(message\)[sir]")
 
46
        fmt_pattern = re.compile("%\\(message\\)[sir]")
47
47
        for c in errors.BzrError.__subclasses__():
48
48
            init = getattr(c, '__init__', None)
49
49
            fmt = getattr(c, '_fmt', None)