diff options
author | Guido van Rossum <guido@python.org> | 1995-08-07 20:16:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-07 20:16:05 (GMT) |
commit | ec8fd94aab82b13adf4e801e41fe49dbf50248f4 (patch) | |
tree | 7283b2871d8103faa5ce4bd26eabaa0f9e399e76 /Lib | |
parent | b7677095d4ba143cc6d265cfde006bbcbccebcd7 (diff) | |
download | cpython-ec8fd94aab82b13adf4e801e41fe49dbf50248f4.zip cpython-ec8fd94aab82b13adf4e801e41fe49dbf50248f4.tar.gz cpython-ec8fd94aab82b13adf4e801e41fe49dbf50248f4.tar.bz2 |
use new "single" compile option
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/pdb.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -74,8 +74,9 @@ class Pdb(bdb.Bdb, cmd.Cmd): locals = self.curframe.f_locals globals = self.curframe.f_globals globals['__privileged__'] = 1 + code = compile(line + '\n', '<stdin>', 'single') try: - exec(line + '\n', globals, locals) + exec code in globals, locals except: if type(sys.exc_type) == type(''): exc_type_name = sys.exc_type |