Show More
@@ -16,12 +16,12 b' def check_compat(f):' | |||
|
16 | 16 | """Check Python 3 compatibility for a file.""" |
|
17 | 17 | with open(f, 'rb') as fh: |
|
18 | 18 | content = fh.read() |
|
19 | root = ast.parse(content) | |
|
19 | 20 | |
|
20 | 21 | # Ignore empty files. |
|
21 |
if not |
|
|
22 | if not root.body: | |
|
22 | 23 | return |
|
23 | 24 | |
|
24 | root = ast.parse(content) | |
|
25 | 25 | futures = set() |
|
26 | 26 | haveprint = False |
|
27 | 27 | for node in ast.walk(root): |
General Comments 0
You need to be logged in to leave comments.
Login now