diff options
author | Petri Lehtinen <petri@digip.org> | 2013-02-23 18:34:15 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2013-02-23 18:34:44 (GMT) |
commit | 3c75a48c860e81063c8034e9929ad092b43677ef (patch) | |
tree | 8d3346669fa18da2b8db0360e5257d5149da9a93 /Doc/library/atexit.rst | |
parent | f484efdb60cf97d04eed4f87f838ad27e1ed241f (diff) | |
parent | 9f74c6cf7d0fd6188194e7bba8f059843b9c3c89 (diff) | |
download | cpython-3c75a48c860e81063c8034e9929ad092b43677ef.zip cpython-3c75a48c860e81063c8034e9929ad092b43677ef.tar.gz cpython-3c75a48c860e81063c8034e9929ad092b43677ef.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.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/atexit.rst b/Doc/library/atexit.rst index 2e22cab..dbdd81e 100644 --- a/Doc/library/atexit.rst +++ b/Doc/library/atexit.rst @@ -68,7 +68,7 @@ automatically when the program terminates without relying on the application making an explicit call into this module at termination. :: try: - with open("/tmp/counter") as infile: + with open("counterfile") as infile: _count = int(infile.read()) except FileNotFoundError: _count = 0 @@ -78,7 +78,7 @@ making an explicit call into this module at termination. :: _count = _count + n def savecounter(): - with open("/tmp/counter", "w") as outfile: + with open("counterfile", "w") as outfile: outfile.write("%d" % _count) import atexit |