summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-01-06 17:10:43 +0100
committerGeorg Brandl <georg@python.org>2015-01-06 17:10:43 +0100
commitb9fe829e026e8d3cfaf774dfc8144d3dc2239e69 (patch)
tree7aabc3c658e012efb1e0cc6c899e1c7e615b94dd /sphinx/highlighting.py
parent81313e903be479d0b49d154d25a3ce47eca73367 (diff)
downloadsphinx-git-b9fe829e026e8d3cfaf774dfc8144d3dc2239e69.tar.gz
highlighting: fix potential TypeError
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r--sphinx/highlighting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py
index 63a46fbd7..58365b35c 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)
+ lexer = lexers[lang] = get_lexer_by_name(lang, **opts or {})
except ClassNotFound:
if warn:
warn('Pygments lexer name %r is not known' % lang)