summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2012-07-12 18:26:01 (GMT)
committerRaymond Hettinger <python@rcn.com>2012-07-12 18:26:01 (GMT)
commit921d1244c6fdacdd2044ed9fdf2ffac5588a641e (patch)
treef8c2a10ce6f0a9342574f3f1448811f9e38a90fb /Doc/library
parent282083d5f4f5a0ba02cf0149caec06a6afecdb5e (diff)
downloadcpython-921d1244c6fdacdd2044ed9fdf2ffac5588a641e.zip
cpython-921d1244c6fdacdd2044ed9fdf2ffac5588a641e.tar.gz
cpython-921d1244c6fdacdd2044ed9fdf2ffac5588a641e.tar.bz2
Show the proper way to exit a cmd shell
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/cmd.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/cmd.rst b/Doc/library/cmd.rst
index fd7f453..943c04a 100644
--- a/Doc/library/cmd.rst
+++ b/Doc/library/cmd.rst
@@ -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):