Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
0b866608
Kaydet (Commit)
0b866608
authored
Eyl 26, 2014
tarafından
Yury Selivanov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tempfile: Fix docstring. Issue #21397, patch by R. David Murray.
üst
97e2e06a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tempfile.py
Lib/tempfile.py
+5
-5
No files found.
Lib/tempfile.py
Dosyayı görüntüle @
0b866608
"""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:
...
@@ -544,7 +544,7 @@ class SpooledTemporaryFile:
...
@@ -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
#
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