patch pygments to catch IOError when user does not have permission to import system Python module pkg_resources

This commit is contained in:
Alan Hamlett 2016-09-07 12:53:31 +02:00
parent d6c6022c51
commit 270d9dc3c7

View file

@ -37,7 +37,7 @@
""" """
try: try:
import pkg_resources import pkg_resources
except ImportError: except (ImportError, IOError):
pkg_resources = None pkg_resources = None
LEXER_ENTRY_POINT = 'pygments.lexers' LEXER_ENTRY_POINT = 'pygments.lexers'