Mercurial > hg
diff contrib/check-py3-compat.py @ 32374:194b0f781132
import-checker: drop workaround for pure modules
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 13 Aug 2016 12:29:53 +0900 |
parents | df448de7cf3b |
children | 778dc37ce683 |
line wrap: on
line diff
--- a/contrib/check-py3-compat.py Sat Aug 13 12:28:52 2016 +0900 +++ b/contrib/check-py3-compat.py Sat Aug 13 12:29:53 2016 +0900 @@ -15,10 +15,6 @@ import sys import traceback -# Modules that have both Python and C implementations. -_dualmodules = ( -) - def check_compat_py2(f): """Check Python 3 compatibility for a file with Python 2""" with open(f, 'rb') as fh: @@ -60,8 +56,6 @@ if f.startswith(('hgext/', 'mercurial/')) and not f.endswith('__init__.py'): assert f.endswith('.py') name = f.replace('/', '.')[:-3] - if f.endswith(_dualmodules): - name = name.replace('.pure.', '.') try: importlib.import_module(name) except Exception as e: