summaryrefslogtreecommitdiffstats
path: root/Doc/library/atexit.rst
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2013-02-23 18:26:56 (GMT)
committerPetri Lehtinen <petri@digip.org>2013-02-23 18:27:49 (GMT)
commit9f74c6cf7d0fd6188194e7bba8f059843b9c3c89 (patch)
tree428d7473b21eb3eb0d728eab38c90490e455ec8b /Doc/library/atexit.rst
parent8b945148e3f98b9c6c51bfaa830e779979713b82 (diff)
downloadcpython-9f74c6cf7d0fd6188194e7bba8f059843b9c3c89.zip
cpython-9f74c6cf7d0fd6188194e7bba8f059843b9c3c89.tar.gz
cpython-9f74c6cf7d0fd6188194e7bba8f059843b9c3c89.tar.bz2
Issue #8890: Stop advertising an insecure use of /tmp in docs
Diffstat (limited to 'Doc/library/atexit.rst')
-rw-r--r--Doc/library/atexit.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/atexit.rst b/Doc/library/atexit.rst
index 7c76bab..01cf379 100644
--- a/Doc/library/atexit.rst
+++ b/Doc/library/atexit.rst
@@ -67,7 +67,7 @@ automatically when the program terminates without relying on the application
making an explicit call into this module at termination. ::
try:
- _count = int(open("/tmp/counter").read())
+ _count = int(open("counter").read())
except IOError:
_count = 0
@@ -76,7 +76,7 @@ making an explicit call into this module at termination. ::
_count = _count + n
def savecounter():
- open("/tmp/counter", "w").write("%d" % _count)
+ open("counter", "w").write("%d" % _count)
import atexit
atexit.register(savecounter)