Skip to content
Snippets Groups Projects
Commit b05a3a04f046 authored by timeless's avatar timeless
Browse files

hghave: add demandimport checking

parent a5ce381a8da0
No related branches found
No related tags found
No related merge requests found
...@@ -530,6 +530,10 @@ ...@@ -530,6 +530,10 @@
br'other supported Python versions') br'other supported Python versions')
return dpkg and dh and dh_py2 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__") @check("absimport", "absolute_import in __future__")
def has_absimport(): def has_absimport():
import __future__ import __future__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment