Mercurial > public > mercurial-scm > hg-stable
comparison contrib/check-py3-compat.py @ 32411:df448de7cf3b
parsers: switch to policy importer
# no-check-commit
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 13 Aug 2016 12:23:56 +0900 |
parents | 151cc3b3d799 |
children | 194b0f781132 |
comparison
equal
deleted
inserted
replaced
32410:151cc3b3d799 | 32411: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: |