Issue #8890: Stop advertising an insecure use of /tmp in docs
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 @@
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 @@
_count = _count + n
def savecounter():
- with open("/tmp/counter", "w") as outfile:
+ with open("counterfile", "w") as outfile:
outfile.write("%d" % _count)
import atexit