mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
tempfile: Fix docstring. Issue #21397, patch by R. David Murray.
This commit is contained in:
parent
97e2e06af8
commit
0b86660891
1 changed files with 5 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
||||||
"""Temporary files.
|
"""Temporary files.
|
||||||
|
|
||||||
This module provides generic, low- and high-level interfaces for
|
This module provides generic, low- and high-level interfaces for
|
||||||
creating temporary files and directories. The interfaces listed
|
creating temporary files and directories. All of the interfaces
|
||||||
as "safe" just below can be used without fear of race conditions.
|
provided by this module can be used without fear of race conditions
|
||||||
Those listed as "unsafe" cannot, and are provided for backward
|
except for 'mktemp'. 'mktemp' is subject to race conditions and
|
||||||
compatibility only.
|
should not be used; it is provided for backward compatibility only.
|
||||||
|
|
||||||
This module also provides some data items to the user:
|
This module also provides some data items to the user:
|
||||||
|
|
||||||
|
@ -544,7 +544,7 @@ class SpooledTemporaryFile:
|
||||||
else:
|
else:
|
||||||
# Setting newline="\n" avoids newline translation;
|
# Setting newline="\n" avoids newline translation;
|
||||||
# this is important because otherwise on Windows we'd
|
# 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._file = _io.StringIO(newline="\n")
|
||||||
self._max_size = max_size
|
self._max_size = max_size
|
||||||
self._rolled = False
|
self._rolled = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue