projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a99750
)
Duh. The do_EOF() implementation was bogus. Make it more like
author
Guido van Rossum
<guido@python.org>
Mon, 13 Jan 2003 21:13:55 +0000
(21:13 +0000)
committer
Guido van Rossum
<guido@python.org>
Mon, 13 Jan 2003 21:13:55 +0000
(21:13 +0000)
do_quit() -- but print a blank line first.
Lib/pdb.py
patch
|
blob
|
history
diff --git
a/Lib/pdb.py
b/Lib/pdb.py
index fffd0ad3b8ff6fd660ebdef54d75e0eb8d0f8c50..1a57c85791a4e6791d3b5f78b8e0ccbc01a1e43e 100755
(executable)
--- a/
Lib/pdb.py
+++ b/
Lib/pdb.py
@@
-193,9
+193,6
@@
class Pdb(bdb.Bdb, cmd.Cmd):
do_h = cmd.Cmd.do_help
- def do_EOF(self, arg):
- return 0 # Don't die on EOF
-
def do_break(self, arg, temporary = 0):
# break [ ([filename:]lineno | function) [, "condition"] ]
if not arg:
@@
-531,6
+528,11
@@
class Pdb(bdb.Bdb, cmd.Cmd):
do_q = do_quit
do_exit = do_quit
+ def do_EOF(self, arg):
+ print
+ self.set_quit()
+ return 1
+
def do_args(self, arg):
f = self.curframe
co = f.f_code