summaryrefslogtreecommitdiff
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-09-26 17:08:02 -0400
committerYury Selivanov <yselivanov@sprymix.com>2014-09-26 17:08:02 -0400
commit3e67d583ee75b99cc42b18443e4721d41ea523cb (patch)
tree06f63029f08a3e081f4f43746606563fb427f68b /Lib/tempfile.py
parent6c1f0ad66545c67ace54155a021de1cd4b1dae8f (diff)
downloadcpython-git-3e67d583ee75b99cc42b18443e4721d41ea523cb.tar.gz
tempfile: Fix docstring. Issue #21397, patch by R. David Murray.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 35fd8b4cab..b6eeca3b1a 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -1,10 +1,10 @@
"""Temporary files.
This module provides generic, low- and high-level interfaces for
-creating temporary files and directories. The interfaces listed
-as "safe" just below can be used without fear of race conditions.
-Those listed as "unsafe" cannot, and are provided for backward
-compatibility only.
+creating temporary files and directories. All of the interfaces
+provided by this module can be used without fear of race conditions
+except for 'mktemp'. 'mktemp' is subject to race conditions and
+should not be used; it is provided for backward compatibility only.
This module also provides some data items to the user:
@@ -518,7 +518,7 @@ class SpooledTemporaryFile:
else:
# Setting newline="\n" avoids newline translation;
# this is important because otherwise on Windows we'd
- # hget double newline translation upon rollover().
+ # get double newline translation upon rollover().
self._file = _io.StringIO(newline="\n")
self._max_size = max_size
self._rolled = False