summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-15 00:48:24 (GMT)
committerGuido van Rossum <guido@python.org>2002-04-15 00:48:24 (GMT)
commitd1c08f33f2915d101c75c8937806bc27496b3463 (patch)
treebfdb100aabd126549779a5c819756925ca93ee89 /Lib/pdb.py
parentbeae4777673fa2a749d326b4860c6a2b0b1ffa12 (diff)
downloadcpython-d1c08f33f2915d101c75c8937806bc27496b3463.zip
cpython-d1c08f33f2915d101c75c8937806bc27496b3463.tar.gz
cpython-d1c08f33f2915d101c75c8937806bc27496b3463.tar.bz2
Add exit as alias for quit, as the easiest way to address SF bug
#543674. Bugfix candidate.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 1286f12..75f0556 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -497,6 +497,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
self.set_quit()
return 1
do_q = do_quit
+ do_exit = do_quit
def do_args(self, arg):
f = self.curframe
@@ -819,9 +820,11 @@ command with a 'global' command, e.g.:
self.help_q()
def help_q(self):
- print """q(uit) Quit from the debugger.
+ print """q(uit) or exit - Quit from the debugger.
The program being executed is aborted."""
+ help_exit = help_q
+
def help_whatis(self):
print """whatis arg
Prints the type of the argument."""