1 import simplify, compiler, sys, os 2 import fixnames 3 import annotate 4 5 a = annotate.Annotator() 6 b = compiler.parseFile(os.path.join("lib", "builtins.py")) 7 m = compiler.parseFile(sys.argv[1]) 8 vb = builtins_simplifier = simplify.Simplifier(1) 9 builtins_simplifier.process(b) 10 v = module_simplifier = simplify.Simplifier() 11 module_simplifier.process(m) 12 builtins_fixer = fixnames.Fixer() 13 builtins_fixer.process(builtins_simplifier) 14 module_fixer = fixnames.Fixer() 15 module_fixer.process(module_simplifier) 16 rb = builtins_simplifier.result 17 r = module_simplifier.result