summaryrefslogtreecommitdiff
path: root/doc/build/lib/highlight.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/build/lib/highlight.py')
-rw-r--r--doc/build/lib/highlight.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/lib/highlight.py b/doc/build/lib/highlight.py
index 1a838408b..2fff3704e 100644
--- a/doc/build/lib/highlight.py
+++ b/doc/build/lib/highlight.py
@@ -170,7 +170,7 @@ class PythonHighlighter(Highlighter):
curc = t[2][1]
if self.get_style(t[0], t[1]) != curstyle:
- if len(tokens):
+ if tokens:
self.colorize([(string.join(tokens, ''), curstyle)])
tokens = []
curstyle = self.get_style(t[0], t[1])
@@ -187,7 +187,7 @@ class PythonHighlighter(Highlighter):
curl = t[3][0]
# any remaining content to output, output it
- if len(tokens):
+ if tokens:
self.colorize([(string.join(tokens, ''), curstyle)])
if trailingspace: