diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-09-09 17:16:33 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-09-09 17:16:33 +0200 |
commit | 1dee355e83b1f524de7a772a8da941a186036bc2 (patch) | |
tree | bb105159e54d994b805deffc63e3acbdcfad8060 | |
parent | 171eaaa30a0ac0f572c932ed04d5029af53b6bd1 (diff) | |
download | python-lxml-1dee355e83b1f524de7a772a8da941a186036bc2.tar.gz |
Py3 syntax fix in helper script.lxml-4.2.5
-rwxr-xr-x | doc/rest2html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/rest2html.py b/doc/rest2html.py index a645062b..6438df32 100755 --- a/doc/rest2html.py +++ b/doc/rest2html.py @@ -38,7 +38,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: # no lexer found - use the text one instead of an exception lexer = TextLexer() # take an arbitrary option if more than one is given |