[Python-checkins] cpython (3.2): Show the proper way to exit a cmd shell
raymond.hettinger
python-checkins at python.org
Thu Jul 12 20:27:04 CEST 2012
http://hg.python.org/cpython/rev/f1a0823b7772
changeset: 78067:f1a0823b7772
branch: 3.2
parent: 78062:724a6e0e35f0
user: Raymond Hettinger <python at rcn.com>
date: Thu Jul 12 11:26:01 2012 -0700
summary:
Show the proper way to exit a cmd shell
files:
Doc/library/cmd.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/cmd.rst b/Doc/library/cmd.rst
--- a/Doc/library/cmd.rst
+++ b/Doc/library/cmd.rst
@@ -276,7 +276,7 @@
print('Thank you for using Turtle')
self.close()
bye()
- sys.exit(0)
+ return True
# ----- record and playback -----
def do_record(self, arg):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list