fixed pygments import

This commit is contained in:
Alan Hamlett 2013-09-22 16:10:08 -07:00
parent 9c9fbeeb8e
commit 43cb99b560

View file

@ -14,11 +14,11 @@ import os
import sys import sys
if sys.version_info[0] == 2: if sys.version_info[0] == 2:
from pygments2.lexers import guess_lexer sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'packages', 'pygments2'))
from pygments2.util import ClassNotFound
else: else:
from pygments3.lexers import guess_lexer sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'packages', 'pygments3'))
from pygments3.util import ClassNotFound from pygments.lexers import guess_lexer
from pygments.util import ClassNotFound
log = logging.getLogger(__name__) log = logging.getLogger(__name__)