summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-01-02 21:56:16 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-01-02 21:56:16 +0100
commitc2324cf5832d8e2347751940a0205c46775e5f86 (patch)
tree6a10082f8642879c8036a11132243d6efd98bced
parentc7bdc8c0e32e48c6730332e6b629ccb351c0f91b (diff)
downloadpython-lxml-c2324cf5832d8e2347751940a0205c46775e5f86.tar.gz
Py3 fix in PDF docs builder script.
-rw-r--r--doc/rest2latex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/rest2latex.py b/doc/rest2latex.py
index 9141617e..92d3e3b4 100644
--- a/doc/rest2latex.py
+++ b/doc/rest2latex.py
@@ -41,7 +41,7 @@ def pygments_directive(name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
try:
lexer = get_lexer_by_name(arguments[0])
- except ValueError, e:
+ except ValueError as e:
# no lexer found - use the text one instead of an exception
lexer = TextLexer()
# take an arbitrary option if more than one is given