]> granicus.if.org Git - python/commitdiff
Use input(), not our own fake raw input (in one place).
authorGuido van Rossum <guido@python.org>
Sun, 27 May 2007 09:19:52 +0000 (09:19 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 27 May 2007 09:19:52 +0000 (09:19 +0000)
Lib/pdb.py

index 9538f3c7b8c977a3044981eec304e0af051f2af9..f408bf3a460adc772b37a46cd6f23d3bc01709f6 100755 (executable)
@@ -28,11 +28,6 @@ _saferepr = _repr.repr
 __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 @@ class Pdb(bdb.Bdb, cmd.Cmd):
         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()