Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3e67d583
Commit
3e67d583
authored
Sep 26, 2014
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tempfile: Fix docstring. Issue #21397, patch by R. David Murray.
parent
6c1f0ad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/tempfile.py
Lib/tempfile.py
+5
-5
No files found.
Lib/tempfile.py
View file @
3e67d583
"""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 backwar
d
except for 'mktemp'. 'mktemp' is subject to race conditions an
d
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:
...
@@ -518,7 +518,7 @@ class SpooledTemporaryFile:
...
@@ -518,7 +518,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
#
h
get 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment