Skip to content

Commit 0b86660

Browse files
committed
tempfile: Fix docstring. Issue #21397, patch by R. David Murray.
1 parent 97e2e06 commit 0b86660

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/tempfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""Temporary files.
22
33
This module provides generic, low- and high-level interfaces for
4-
creating temporary files and directories. The interfaces listed
5-
as "safe" just below can be used without fear of race conditions.
6-
Those listed as "unsafe" cannot, and are provided for backward
7-
compatibility only.
4+
creating temporary files and directories. All of the interfaces
5+
provided by this module can be used without fear of race conditions
6+
except for 'mktemp'. 'mktemp' is subject to race conditions and
7+
should not be used; it is provided for backward compatibility only.
88
99
This module also provides some data items to the user:
1010
@@ -544,7 +544,7 @@ def __init__(self, max_size=0, mode='w+b', buffering=-1,
544544
else:
545545
# Setting newline="\n" avoids newline translation;
546546
# this is important because otherwise on Windows we'd
547-
# hget double newline translation upon rollover().
547+
# get double newline translation upon rollover().
548548
self._file = _io.StringIO(newline="\n")
549549
self._max_size = max_size
550550
self._rolled = False

0 commit comments

Comments
 (0)