Skip to content

Commit

Permalink
Py3 syntax fix in helper script.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Sep 9, 2018
1 parent 171eaaa commit 1dee355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/rest2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1dee355

Please sign in to comment.