~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_export_pot.py

  • Committer: Vincent Ladeuil
  • Date: 2011-06-28 10:28:29 UTC
  • mto: This revision was merged to the branch mainline in revision 5994.
  • Revision ID: v.ladeuil+lp@free.fr-20110628102829-te96uxnc0jpprsq9
Fix python2.6 compatibility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
 
172
172
        export_pot._write_command_help(self._outf, cmd_Demo())
173
173
        result = self._outf.getvalue()
174
 
        # We don't concern abount filename and lineno here.
175
 
        result = re.sub(r'^#: [^\n]+\n', '', result, flags=re.MULTILINE)
 
174
        # We don't care about filename and lineno here.
 
175
        result = re.sub(r'(?m)^#: [^\n]+\n', '', result)
176
176
 
177
177
        self.assertEqualDiff(
178
178
                'msgid "A sample command."\n'