File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ instead a string of six random characters is used.
2525
2626Also, all the user-callable functions now take additional arguments which
2727allow direct control over the location and name of temporary files. It is
28- no longer necessary to use the global *tempdir * and * template * variables .
28+ no longer necessary to use the global *tempdir * variable .
2929To maintain backward compatibility, the argument order is somewhat odd; it
3030is recommended to use keyword arguments for clarity.
3131
Original file line number Diff line number Diff line change 1010
1111 TMP_MAX - maximum number of names that will be tried before
1212 giving up.
13- template - the default prefix for all temporary names.
14- You may change this to control the default prefix.
1513 tempdir - If this is set to a string before the first use of
1614 any routine from this module, it will be considered as
1715 another candidate location to store temporary files.
@@ -74,6 +72,8 @@ def _set_cloexec(fd):
7472else :
7573 TMP_MAX = 10000
7674
75+ # Although it does not have an underscore for historical reasons, this
76+ # variable is an internal implementation detail (see issue 10354).
7777template = "tmp"
7878
7979# Internal routines.
You can’t perform that action at this time.
0 commit comments