--- 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: