##// 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 17 with open(f, 'rb') as fh:
18 18 content = fh.read()
19 19
20 # Ignore empty files.
21 if not content.strip():
22 return
23
20 24 root = ast.parse(content)
21 25 futures = set()
22 26 haveprint = False
@@ -15,7 +15,6 b''
15 15 contrib/fixpax.py requires print_function
16 16 contrib/hgclient.py not using absolute_import
17 17 contrib/hgclient.py requires print_function
18 contrib/hgfixes/__init__.py not using absolute_import
19 18 contrib/hgfixes/fix_bytes.py not using absolute_import
20 19 contrib/hgfixes/fix_bytesmod.py not using absolute_import
21 20 contrib/hgfixes/fix_leftover_imports.py not using absolute_import
@@ -125,7 +124,6 b''
125 124 mercurial/mdiff.py not using absolute_import
126 125 mercurial/obsolete.py not using absolute_import
127 126 mercurial/patch.py not using absolute_import
128 mercurial/pure/__init__.py not using absolute_import
129 127 mercurial/pure/base85.py not using absolute_import
130 128 mercurial/pure/bdiff.py not using absolute_import
131 129 mercurial/pure/diffhelpers.py not using absolute_import
General Comments 0
You need to be logged in to leave comments. Login now