/breezy/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/trunk

« back to all changes in this revision

Viewing changes to tools/prepare_for_latex.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 13:02:50 UTC
  • mto: This revision was merged to the branch mainline in revision 7178.
  • Revision ID: jelmer@jelmer.uk-20181116130250-wzj191jizriee3vn
Fix E225.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    def replace_extension(self, path, newext):
95
95
        if path.endswith(newext):
96
96
            raise Exception("File '" + path + "' already has extension '"
97
 
                            + newext +"'")
 
97
                            + newext + "'")
98
98
        dot = path.rfind('.')
99
99
        if dot == -1:
100
100
            return path + newext