[pypy-svn] r55999 - pypy/dist/pypy/translator/tool

xoraxax at codespeak.net xoraxax at codespeak.net
Fri Jun 20 18:33:26 CEST 2008


Author: xoraxax
Date: Fri Jun 20 18:33:25 2008
New Revision: 55999

Modified:
   pypy/dist/pypy/translator/tool/pdbplus.py
Log:
Make pdb+ prompt composable with the underlying pdbs if the prompt is different from the original prompt

Modified: pypy/dist/pypy/translator/tool/pdbplus.py
==============================================================================
--- pypy/dist/pypy/translator/tool/pdbplus.py	(original)
+++ pypy/dist/pypy/translator/tool/pdbplus.py	Fri Jun 20 18:33:25 2008
@@ -11,7 +11,10 @@
 
     def __init__(self, translator):
         pdb.Pdb.__init__(self)
-        self.prompt = "(Pdb+) "
+        if self.prompt == "(Pdb) ":
+            self.prompt = "(Pdb+) "
+        else:
+            self.prompt = self.prompt.replace("(", "(Pdb+ on ", 1)
         self.translator = translator
         self.exposed = {}
 



More information about the Pypy-commit mailing list