changeset 29763 | 8faac092bb0c |
parent 29550 | 1c22400db72d |
child 30093 | 68010ed1636d |
--- a/contrib/check-py3-compat.py Tue Aug 09 02:28:34 2016 +0900 +++ b/contrib/check-py3-compat.py Tue Aug 09 02:28:34 2016 +0900 @@ -55,7 +55,7 @@ # out module paths for things not in a package can be confusing. if f.startswith(('hgext/', 'mercurial/')) and not f.endswith('__init__.py'): assert f.endswith('.py') - name = f.replace('/', '.')[:-3] + name = f.replace('/', '.')[:-3].replace('.pure.', '.') with open(f, 'r') as fh: try: imp.load_module(name, fh, '', ('py', 'r', imp.PY_SOURCE))