Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e67d58

Browse files
committed
tempfile: Fix docstring. Issue #21397, patch by R. David Murray.
1 parent 6c1f0ad commit 3e67d58

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
@@ -518,7 +518,7 @@ def __init__(self, max_size=0, mode='w+b', buffering=-1,
518518
else:
519519
# Setting newline="\n" avoids newline translation;
520520
# this is important because otherwise on Windows we'd
521-
# hget double newline translation upon rollover().
521+
# get double newline translation upon rollover().
522522
self._file = _io.StringIO(newline="\n")
523523
self._max_size = max_size
524524
self._rolled = False

0 commit comments

Comments
 (0)