]> granicus.if.org Git - python/commitdiff
Add exit as alias for quit, as the easiest way to address SF bug
authorGuido van Rossum <guido@python.org>
Mon, 15 Apr 2002 00:48:24 +0000 (00:48 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Apr 2002 00:48:24 +0000 (00:48 +0000)
#543674.

Bugfix candidate.

Lib/pdb.py

index 1286f122ba0d3e523a090ad38ce7e547b721585b..75f05560baf41aae159ce1dd49ec88904f9b6157 100755 (executable)
@@ -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."""