contrib/check-py3-compat.py
changeset 32374 194b0f781132
parent 32372 df448de7cf3b
child 32421 778dc37ce683
--- 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: