diff options
author | Georg Brandl <georg@python.org> | 2015-01-06 17:10:43 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-01-06 17:10:43 +0100 |
commit | b9fe829e026e8d3cfaf774dfc8144d3dc2239e69 (patch) | |
tree | 7aabc3c658e012efb1e0cc6c899e1c7e615b94dd /sphinx/highlighting.py | |
parent | 81313e903be479d0b49d154d25a3ce47eca73367 (diff) | |
download | sphinx-git-b9fe829e026e8d3cfaf774dfc8144d3dc2239e69.tar.gz |
highlighting: fix potential TypeError
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r-- | sphinx/highlighting.py | 2 |
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) |