##// END OF EJS Templates
contrib: ignore empty files in check-py3-compat.py
Gregory Szorc -
r27331:35e69407 default
parent child Browse files
Show More
@@ -17,6 +17,10 b' def check_compat(f):'
17 with open(f, 'rb') as fh:
17 with open(f, 'rb') as fh:
18 content = fh.read()
18 content = fh.read()
19
19
20 # Ignore empty files.
21 if not content.strip():
22 return
23
20 root = ast.parse(content)
24 root = ast.parse(content)
21 futures = set()
25 futures = set()
22 haveprint = False
26 haveprint = False
@@ -15,7 +15,6 b''
15 contrib/fixpax.py requires print_function
15 contrib/fixpax.py requires print_function
16 contrib/hgclient.py not using absolute_import
16 contrib/hgclient.py not using absolute_import
17 contrib/hgclient.py requires print_function
17 contrib/hgclient.py requires print_function
18 contrib/hgfixes/__init__.py not using absolute_import
19 contrib/hgfixes/fix_bytes.py not using absolute_import
18 contrib/hgfixes/fix_bytes.py not using absolute_import
20 contrib/hgfixes/fix_bytesmod.py not using absolute_import
19 contrib/hgfixes/fix_bytesmod.py not using absolute_import
21 contrib/hgfixes/fix_leftover_imports.py not using absolute_import
20 contrib/hgfixes/fix_leftover_imports.py not using absolute_import
@@ -125,7 +124,6 b''
125 mercurial/mdiff.py not using absolute_import
124 mercurial/mdiff.py not using absolute_import
126 mercurial/obsolete.py not using absolute_import
125 mercurial/obsolete.py not using absolute_import
127 mercurial/patch.py not using absolute_import
126 mercurial/patch.py not using absolute_import
128 mercurial/pure/__init__.py not using absolute_import
129 mercurial/pure/base85.py not using absolute_import
127 mercurial/pure/base85.py not using absolute_import
130 mercurial/pure/bdiff.py not using absolute_import
128 mercurial/pure/bdiff.py not using absolute_import
131 mercurial/pure/diffhelpers.py not using absolute_import
129 mercurial/pure/diffhelpers.py not using absolute_import
General Comments 0
You need to be logged in to leave comments. Login now