Kaydet (Commit) ec8fd94a authored tarafından Guido van Rossum's avatar Guido van Rossum

use new "single" compile option

üst b7677095
...@@ -74,8 +74,9 @@ class Pdb(bdb.Bdb, cmd.Cmd): ...@@ -74,8 +74,9 @@ class Pdb(bdb.Bdb, cmd.Cmd):
locals = self.curframe.f_locals locals = self.curframe.f_locals
globals = self.curframe.f_globals globals = self.curframe.f_globals
globals['__privileged__'] = 1 globals['__privileged__'] = 1
code = compile(line + '\n', '<stdin>', 'single')
try: try:
exec(line + '\n', globals, locals) exec code in globals, locals
except: except:
if type(sys.exc_type) == type(''): if type(sys.exc_type) == type(''):
exc_type_name = sys.exc_type exc_type_name = sys.exc_type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment