Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-py3-compat.py @ 32459:778dc37ce683
check: check modules in hgdemandimport
A few places only check modules in mercurial and hgext. Add
hgdemandimport to the list in those places.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Sun, 21 May 2017 13:44:26 -0700 |
parents | 194b0f781132 |
children | 01417ca7f2e2 |
line wrap: on
line diff
--- a/contrib/check-py3-compat.py Sun May 21 12:10:53 2017 -0700 +++ b/contrib/check-py3-compat.py Sun May 21 13:44:26 2017 -0700 @@ -51,9 +51,10 @@ return # Try to import the module. - # For now we only support mercurial.* and hgext.* modules because figuring - # out module paths for things not in a package can be confusing. - if f.startswith(('hgext/', 'mercurial/')) and not f.endswith('__init__.py'): + # For now we only support modules in packages because figuring out module + # paths for things not in a package can be confusing. + if (f.startswith(('hgdemandimport/', 'hgext/', 'mercurial/')) + and not f.endswith('__init__.py')): assert f.endswith('.py') name = f.replace('/', '.')[:-3] try: