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