From ae62e226c83ef00c0abfe3121e1eb9a74090d7d2 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Tue, 12 May 2015 23:39:24 -0400 Subject: [PATCH] FIX : fix syntax error in python 3.5 Be explicit about grouping between `**` in call and the `or` expression. --- sphinx/highlighting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py index dd40bc308..6f22993c2 100644 --- a/sphinx/highlighting.py +++ b/sphinx/highlighting.py @@ -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)