From 36a467613648cdb0adba793a40c3f7fbb8ffbbff Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 22 Dec 2014 03:31:32 +0100 Subject: [PATCH] Remove C-isms in Python code. --- src/tools/docmaker/formatter.py | 2 +- src/tools/docmaker/tohtml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/docmaker/formatter.py b/src/tools/docmaker/formatter.py index b1c88be67..7152c019d 100644 --- a/src/tools/docmaker/formatter.py +++ b/src/tools/docmaker/formatter.py @@ -196,7 +196,7 @@ class Formatter: skip_entry = 1 # this happens e.g. for `/empty/' entries if skip_entry: - continue; + continue self.block_enter( block ) diff --git a/src/tools/docmaker/tohtml.py b/src/tools/docmaker/tohtml.py index 9b2f2914c..05fc08a92 100644 --- a/src/tools/docmaker/tohtml.py +++ b/src/tools/docmaker/tohtml.py @@ -628,7 +628,7 @@ class HtmlFormatter( Formatter ): for f in self.headers.keys(): if block.source.filename.find( f ) >= 0: header = self.headers[f] + ' (' + f + ')' - break; + break # if not header: # sys.stderr.write(