• Amaury Forgeot d'Arc's avatar
    #6323: pdb doesn't deal well with SyntaxErrors. · 66b80aa4
    Amaury Forgeot d'Arc authored
    It seems necessary to keep two layers of 'exec' (one in Bdb.run, one in Pdb._runscript);
    this allows the tracing function to be active when the inner 'exec' runs
    and tries to compile the real code.
    
    This partially revert r58127, the net effet of the two changes is to replace
    "exec('%s')" with "exec(%r)".
    66b80aa4
pdb.py 44.7 KB