[Python-3000-checkins] r55612 - python/branches/py3k-struni/Lib/pdb.py

guido.van.rossum python-3000-checkins at python.org
Sun May 27 11:19:52 CEST 2007


Author: guido.van.rossum
Date: Sun May 27 11:19:52 2007
New Revision: 55612

Modified:
   python/branches/py3k-struni/Lib/pdb.py
Log:
Use input(), not our own fake raw input (in one place).


Modified: python/branches/py3k-struni/Lib/pdb.py
==============================================================================
--- python/branches/py3k-struni/Lib/pdb.py	(original)
+++ python/branches/py3k-struni/Lib/pdb.py	Sun May 27 11:19:52 2007
@@ -28,11 +28,6 @@
 __all__ = ["run", "pm", "Pdb", "runeval", "runctx", "runcall", "set_trace",
            "post_mortem", "help"]
 
-def raw_input(prompt):
-    sys.stdout.write(prompt)
-    sys.stdout.flush()
-    return sys.stdin.readline()
-
 def find_function(funcname, filename):
     cre = re.compile(r'def\s+%s\s*[(]' % re.escape(funcname))
     try:
@@ -543,7 +538,7 @@
         clear bpno bpno ... -> clear breakpoints by number"""
         if not arg:
             try:
-                reply = raw_input('Clear all breaks? ')
+                reply = input('Clear all breaks? ')
             except EOFError:
                 reply = 'no'
             reply = reply.strip().lower()


More information about the Python-3000-checkins mailing list