]> granicus.if.org Git - python/commitdiff
Show the proper way to exit a cmd shell
authorRaymond Hettinger <python@rcn.com>
Thu, 12 Jul 2012 18:26:01 +0000 (11:26 -0700)
committerRaymond Hettinger <python@rcn.com>
Thu, 12 Jul 2012 18:26:01 +0000 (11:26 -0700)
Doc/library/cmd.rst

index fd7f4537c62966b4531ece52617e456e9ae613a3..943c04a84013b09f6186285e407b0ac32e724b6b 100644 (file)
@@ -276,7 +276,7 @@ immediate playback::
             print('Thank you for using Turtle')
             self.close()
             bye()
-            sys.exit(0)
+            return True
 
         # ----- record and playback -----
         def do_record(self, arg):