patch pygments to catch IOError when user does not have permission to import system Python module pkg_resources
This commit is contained in:
parent
d6c6022c51
commit
270d9dc3c7
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue