Show More
@@ -554,7 +554,7 b' def find_cycles(imports):' | |||||
554 | top.foo -> top.qux -> top.foo |
|
554 | top.foo -> top.qux -> top.foo | |
555 | """ |
|
555 | """ | |
556 | cycles = set() |
|
556 | cycles = set() | |
557 |
for mod in sorted(imports. |
|
557 | for mod in sorted(imports.keys()): | |
558 | try: |
|
558 | try: | |
559 | checkmod(mod, imports) |
|
559 | checkmod(mod, imports) | |
560 | except CircularImport as e: |
|
560 | except CircularImport as e: | |
@@ -578,7 +578,7 b' def main(argv):' | |||||
578 | for source_path in argv[1:]: |
|
578 | for source_path in argv[1:]: | |
579 | modname = dotted_name_of_path(source_path, trimpure=True) |
|
579 | modname = dotted_name_of_path(source_path, trimpure=True) | |
580 | localmods[modname] = source_path |
|
580 | localmods[modname] = source_path | |
581 |
for modname, source_path in sorted(localmods. |
|
581 | for modname, source_path in sorted(localmods.items()): | |
582 | f = open(source_path) |
|
582 | f = open(source_path) | |
583 | src = f.read() |
|
583 | src = f.read() | |
584 | used_imports[modname] = sorted( |
|
584 | used_imports[modname] = sorted( |
General Comments 0
You need to be logged in to leave comments.
Login now