Show More
@@ -10,11 +10,6 b'' | |||||
10 |
|
10 | |||
11 | from __future__ import absolute_import |
|
11 | from __future__ import absolute_import | |
12 |
|
12 | |||
13 | import pygments |
|
|||
14 | import pygments.formatters |
|
|||
15 | import pygments.lexers |
|
|||
16 | import pygments.util |
|
|||
17 |
|
||||
18 | from mercurial import demandimport |
|
13 | from mercurial import demandimport | |
19 | demandimport.ignore.extend(['pkgutil', 'pkg_resources', '__main__']) |
|
14 | demandimport.ignore.extend(['pkgutil', 'pkg_resources', '__main__']) | |
20 |
|
15 | |||
@@ -23,6 +18,12 b' from mercurial import (' | |||||
23 | util, |
|
18 | util, | |
24 | ) |
|
19 | ) | |
25 |
|
20 | |||
|
21 | with demandimport.deactivated(): | |||
|
22 | import pygments | |||
|
23 | import pygments.formatters | |||
|
24 | import pygments.lexers | |||
|
25 | import pygments.util | |||
|
26 | ||||
26 | highlight = pygments.highlight |
|
27 | highlight = pygments.highlight | |
27 | ClassNotFound = pygments.util.ClassNotFound |
|
28 | ClassNotFound = pygments.util.ClassNotFound | |
28 | guess_lexer = pygments.lexers.guess_lexer |
|
29 | guess_lexer = pygments.lexers.guess_lexer |
General Comments 0
You need to be logged in to leave comments.
Login now