Update py_import_test.
Note: mandatory check (NEED_CHECK) was skipped
from __future__ import print_function
-import itertools
import os
import re
import sys
@@ -24,6 +23,7 @@ def check_imports(no_check=(), extra=(), skip_func=None):
exceptions = list(no_check)
for key, _ in __res.iter_keys(b'py/no_check_imports/'):
exceptions += str_(__res.find(key)).split()
+ if exceptions:
exceptions.sort()
print('NO_CHECK_IMPORTS', ' '.join(exceptions))
