summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-01 21:06:30 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-01 21:06:30 (GMT)
commit00b6590821d97dc2bde82e70e06d68918c2e3b07 (patch)
tree16619a2e737daeb4ca29efc8f6a9e9afe9aeb1ff /Lib
parent5942b91759de4a541cbde363aeae166c495b1e72 (diff)
downloadcpython-00b6590821d97dc2bde82e70e06d68918c2e3b07.zip
cpython-00b6590821d97dc2bde82e70e06d68918c2e3b07.tar.gz
cpython-00b6590821d97dc2bde82e70e06d68918c2e3b07.tar.bz2
Revert accidental checkin.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/pdb.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index a7187b2..3f76032 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -194,9 +194,6 @@ class Pdb(bdb.Bdb, cmd.Cmd):
self.cmdloop()
self.forget()
- def displayhook(self, item):
- print item
-
def default(self, line):
if line[:1] == '!': line = line[1:]
locals = self.curframe.f_locals
@@ -205,16 +202,13 @@ class Pdb(bdb.Bdb, cmd.Cmd):
code = compile(line + '\n', '<stdin>', 'single')
save_stdout = sys.stdout
save_stdin = sys.stdin
- save_displayhook = sys.displayhook
try:
sys.stdin = self.stdin
sys.stdout = self.stdout
- sys.displayhook = self.displayhook
exec code in globals, locals
finally:
sys.stdout = save_stdout
sys.stdin = save_stdin
- sys.displayhook = save_displayhook
except:
t, v = sys.exc_info()[:2]
if type(t) == type(''):