Show More
@@ -587,12 +587,17 b' def main(argv):' | |||||
587 | localmods[modname] = source_path |
|
587 | localmods[modname] = source_path | |
588 | for localmodname, source_path in sorted(localmods.items()): |
|
588 | for localmodname, source_path in sorted(localmods.items()): | |
589 | for src, modname in sources(source_path, localmodname): |
|
589 | for src, modname in sources(source_path, localmodname): | |
|
590 | try: | |||
590 | used_imports[modname] = sorted( |
|
591 | used_imports[modname] = sorted( | |
591 |
imported_modules(src, modname, localmods, |
|
592 | imported_modules(src, modname, localmods, | |
|
593 | ignore_nested=True)) | |||
592 | for error, lineno in verify_import_convention(modname, src, |
|
594 | for error, lineno in verify_import_convention(modname, src, | |
593 | localmods): |
|
595 | localmods): | |
594 | any_errors = True |
|
596 | any_errors = True | |
595 | print('%s:%d: %s' % (source_path, lineno, error)) |
|
597 | print('%s:%d: %s' % (source_path, lineno, error)) | |
|
598 | except SyntaxError as e: | |||
|
599 | print('%s:%d: SyntaxError: %s' % | |||
|
600 | (source_path, e.lineno, e)) | |||
596 | cycles = find_cycles(used_imports) |
|
601 | cycles = find_cycles(used_imports) | |
597 | if cycles: |
|
602 | if cycles: | |
598 | firstmods = set() |
|
603 | firstmods = set() |
General Comments 0
You need to be logged in to leave comments.
Login now