/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 tools/prepare_for_latex.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 19:38:57 UTC
  • mfrom: (7143.16.21 even-more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116193857-bs5oma2655sp55qu
Fix another dozen flake8 errors.

Merged from https://code.launchpad.net/~jelmer/brz/even-more-cleanups/+merge/358931

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