diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-09-26 21:08:21 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-09-26 21:08:21 (GMT) |
commit | 0b866608919b5abbe644f702289d6f29f59e2b47 (patch) | |
tree | 3dc0d29d482a7bfe0248d28e8dddb1192eebe88c /Lib/tempfile.py | |
parent | 97e2e06af84942c1d776df9660aa5f8dd30f222c (diff) | |
download | cpython-0b866608919b5abbe644f702289d6f29f59e2b47.zip cpython-0b866608919b5abbe644f702289d6f29f59e2b47.tar.gz cpython-0b866608919b5abbe644f702289d6f29f59e2b47.tar.bz2 |
tempfile: Fix docstring. Issue #21397, patch by R. David Murray.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r-- | Lib/tempfile.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index d58d5dd..0522c79 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: @@ -544,7 +544,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 |