• Jeremy Hylton's avatar
    Handle more syntax errors. · 37c9351c
    Jeremy Hylton authored
    Invoke compiler.syntax.check() after building AST.  If a SyntaxError
    occurs, print the error and exit without generating a .pyc file.
    
    Refactor code to use compiler.misc.set_filename() rather than passing
    filename argument around to each CodeGenerator instance.
    37c9351c
pycodegen.py 38.9 KB