equal
deleted
inserted
replaced
17 basehttpserver = None |
17 basehttpserver = None |
18 import zlib |
18 import zlib |
19 |
19 |
20 import testparseutil |
20 import testparseutil |
21 |
21 |
22 # Whitelist of modules that symbols can be directly imported from. |
22 # Allow list of modules that symbols can be directly imported from. |
23 allowsymbolimports = ( |
23 allowsymbolimports = ( |
24 '__future__', |
24 '__future__', |
25 'breezy', |
25 'breezy', |
26 'concurrent', |
26 'concurrent', |
27 'hgclient', |
27 'hgclient', |
44 # third-party imports should be directly imported |
44 # third-party imports should be directly imported |
45 'mercurial.thirdparty', |
45 'mercurial.thirdparty', |
46 'mercurial.thirdparty.attr', |
46 'mercurial.thirdparty.attr', |
47 'mercurial.thirdparty.zope', |
47 'mercurial.thirdparty.zope', |
48 'mercurial.thirdparty.zope.interface', |
48 'mercurial.thirdparty.zope.interface', |
|
49 'typing', |
49 ) |
50 ) |
50 |
51 |
51 # Whitelist of symbols that can be directly imported. |
52 # Allow list of symbols that can be directly imported. |
52 directsymbols = ('demandimport',) |
53 directsymbols = ('demandimport',) |
53 |
54 |
54 # Modules that must be aliased because they are commonly confused with |
55 # Modules that must be aliased because they are commonly confused with |
55 # common variables and can create aliasing and readability issues. |
56 # common variables and can create aliasing and readability issues. |
56 requirealias = { |
57 requirealias = { |