[Python-checkins] r70994 - python/trunk/Lib/pdb.py

georg.brandl python-checkins at python.org
Wed Apr 1 23:06:30 CEST 2009


Author: georg.brandl
Date: Wed Apr 1 23:06:30 2009
New Revision: 70994
Log:
Revert accidental checkin.
Modified:
 python/trunk/Lib/pdb.py
Modified: python/trunk/Lib/pdb.py
==============================================================================
--- python/trunk/Lib/pdb.py	(original)
+++ python/trunk/Lib/pdb.py	Wed Apr 1 23:06:30 2009
@@ -194,9 +194,6 @@
 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 @@
 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(''):


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /