FIX : fix syntax error in python 3.5

Be explicit about grouping between `**` in call and the
`or` expression.
This commit is contained in:
Thomas A Caswell
2015-05-12 23:39:24 -04:00
parent 42f2b30579
commit ae62e226c8

View File

@@ -164,7 +164,7 @@ class PygmentsBridge(object):
lexer = lexers[lang]
else:
try:
lexer = lexers[lang] = get_lexer_by_name(lang, **opts or {})
lexer = lexers[lang] = get_lexer_by_name(lang, **(opts or {}))
except ClassNotFound:
if warn:
warn('Pygments lexer name %r is not known' % lang)