From: Michael W. Hudson Date: Fri, 23 Aug 2002 15:42:27 +0000 (+0000) Subject: backport gvanrossum's checkin of X-Git-Tag: v2.2.2b1~206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d494d119dea3a52339d8cccd82c9a1e9c805fa84;p=thirdparty%2FPython%2Fcpython.git backport gvanrossum's checkin of revision 1.52 of pdb.py date: 2002/04/15 00:48:24; author: gvanrossum; state: Exp; lines: +4 -1 Add exit as alias for quit, as the easiest way to address SF bug #543674. Bugfix candidate. --- diff --git a/Lib/pdb.py b/Lib/pdb.py index 7ff994d14b08..246c6da97ce5 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."""