mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
hghave: add demandimport checking
This commit is contained in:
parent
1e21e7a9f5
commit
eab7889a37
@ -530,6 +530,10 @@ def has_debhelper():
|
||||
br'other supported Python versions')
|
||||
return dpkg and dh and dh_py2
|
||||
|
||||
@check("demandimport", "demandimport enabled")
|
||||
def has_demandimport():
|
||||
return os.environ.get('HGDEMANDIMPORT') != 'disable'
|
||||
|
||||
@check("absimport", "absolute_import in __future__")
|
||||
def has_absimport():
|
||||
import __future__
|
||||
|
Loading…
Reference in New Issue
Block a user