summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-27 09:19:52 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-27 09:19:52 (GMT)
commitc5b6ab0baa7e6f7cee944d3db7805b37e81c1acd (patch)
tree7778174080397922e72f5e5529d9453f48bc55f5 /Lib/pdb.py
parente625fd5444bda7a6b619c256eaf86a2ff0d51c6c (diff)
downloadcpython-c5b6ab0baa7e6f7cee944d3db7805b37e81c1acd.zip
cpython-c5b6ab0baa7e6f7cee944d3db7805b37e81c1acd.tar.gz
cpython-c5b6ab0baa7e6f7cee944d3db7805b37e81c1acd.tar.bz2
Use input(), not our own fake raw input (in one place).
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 9538f3c..f408bf3 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -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()