diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-01-02 21:56:16 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-01-02 21:56:16 +0100 |
commit | c2324cf5832d8e2347751940a0205c46775e5f86 (patch) | |
tree | 6a10082f8642879c8036a11132243d6efd98bced | |
parent | c7bdc8c0e32e48c6730332e6b629ccb351c0f91b (diff) | |
download | python-lxml-c2324cf5832d8e2347751940a0205c46775e5f86.tar.gz |
Py3 fix in PDF docs builder script.
-rw-r--r-- | doc/rest2latex.py | 2 |
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 |