contrib/check-py3-compat.py
changeset 32372 df448de7cf3b
parent 32371 151cc3b3d799
child 32374 194b0f781132
equal deleted inserted replaced
32371:151cc3b3d799 32372:df448de7cf3b
    15 import sys
    15 import sys
    16 import traceback
    16 import traceback
    17 
    17 
    18 # Modules that have both Python and C implementations.
    18 # Modules that have both Python and C implementations.
    19 _dualmodules = (
    19 _dualmodules = (
    20     'parsers.py',
       
    21 )
    20 )
    22 
    21 
    23 def check_compat_py2(f):
    22 def check_compat_py2(f):
    24     """Check Python 3 compatibility for a file with Python 2"""
    23     """Check Python 3 compatibility for a file with Python 2"""
    25     with open(f, 'rb') as fh:
    24     with open(f, 'rb') as fh: