summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-07 20:16:05 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-07 20:16:05 (GMT)
commitec8fd94aab82b13adf4e801e41fe49dbf50248f4 (patch)
tree7283b2871d8103faa5ce4bd26eabaa0f9e399e76 /Lib
parentb7677095d4ba143cc6d265cfde006bbcbccebcd7 (diff)
downloadcpython-ec8fd94aab82b13adf4e801e41fe49dbf50248f4.zip
cpython-ec8fd94aab82b13adf4e801e41fe49dbf50248f4.tar.gz
cpython-ec8fd94aab82b13adf4e801e41fe49dbf50248f4.tar.bz2
use new "single" compile option
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/pdb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 7a00b83..f44c7e0 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -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