summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-06-23 01:01:13 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-06-23 01:01:13 (GMT)
commit3a420c752d21b0fc28a3cfd0bcd379f84ff6b7e2 (patch)
tree7d08b1f81cc7fafffae3053ce215ce95508843a3 /Lib/tempfile.py
parent8153b7a57aeae8f40c09b729b8d6b5781d91aece (diff)
downloadcpython-3a420c752d21b0fc28a3cfd0bcd379f84ff6b7e2.zip
cpython-3a420c752d21b0fc28a3cfd0bcd379f84ff6b7e2.tar.gz
cpython-3a420c752d21b0fc28a3cfd0bcd379f84ff6b7e2.tar.bz2
#10354: remove last public mentions of 'template' and comment as private.
I didn't rename the variable because I can see no good reason to break backward compatibility just to put an underscore in the name.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index b28d91f..b7439a2 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -10,8 +10,6 @@ This module also provides some data items to the user:
TMP_MAX - maximum number of names that will be tried before
giving up.
- template - the default prefix for all temporary names.
- You may change this to control the default prefix.
tempdir - If this is set to a string before the first use of
any routine from this module, it will be considered as
another candidate location to store temporary files.
@@ -74,6 +72,8 @@ if hasattr(_os, 'TMP_MAX'):
else:
TMP_MAX = 10000
+# Although it does not have an underscore for historical reasons, this
+# variable is an internal implementation detail (see issue 10354).
template = "tmp"
# Internal routines.