equal
deleted
inserted
replaced
24 be identified by their filename. When this is not enabled (the default), |
24 be identified by their filename. When this is not enabled (the default), |
25 Pygments will try very hard to identify the file type from content and any |
25 Pygments will try very hard to identify the file type from content and any |
26 match (even matches with a low confidence score) will be used. |
26 match (even matches with a low confidence score) will be used. |
27 """ |
27 """ |
28 |
28 |
29 import highlight |
29 from __future__ import absolute_import |
30 from mercurial.hgweb import webcommands, webutil, common |
30 |
31 from mercurial import extensions, encoding, fileset |
31 from . import highlight |
|
32 from mercurial.hgweb import ( |
|
33 common, |
|
34 webcommands, |
|
35 webutil, |
|
36 ) |
|
37 |
|
38 from mercurial import ( |
|
39 encoding, |
|
40 extensions, |
|
41 fileset, |
|
42 ) |
|
43 |
32 # Note for extension authors: ONLY specify testedwith = 'internal' for |
44 # Note for extension authors: ONLY specify testedwith = 'internal' for |
33 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
45 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
34 # be specifying the version(s) of Mercurial they are tested with, or |
46 # be specifying the version(s) of Mercurial they are tested with, or |
35 # leave the attribute unspecified. |
47 # leave the attribute unspecified. |
36 testedwith = 'internal' |
48 testedwith = 'internal' |