summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-01-15 21:25:11 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-01-15 21:25:11 (GMT)
commitff0f2670ff34e062e7c70af0381189e5752620a2 (patch)
treeb9c261ee4ad025e06702ce7297a082dee8cce595 /Lib/pdb.py
parente805782b537cce4a1cf1d15b554b0895dc67123a (diff)
downloadcpython-ff0f2670ff34e062e7c70af0381189e5752620a2.zip
cpython-ff0f2670ff34e062e7c70af0381189e5752620a2.tar.gz
cpython-ff0f2670ff34e062e7c70af0381189e5752620a2.tar.bz2
test_doctest fails since r59984.
Not sure if these are the correct values, but save_stdout has to be set before its usage...
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index e2ace87..8da23d8 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -199,6 +199,8 @@ class Pdb(bdb.Bdb, cmd.Cmd):
globals = self.curframe.f_globals
try:
code = compile(line + '\n', '<stdin>', 'single')
+ save_stdout = sys.stdout
+ save_stdin = sys.stdin
try:
sys.stdin = self.stdin
sys.stdout = self.stdout