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
e1e48ea2
Kaydet (Commit)
e1e48ea2
authored
Agu 15, 2008
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix build from a blank checkout by using the _thread module instead of threading in io.py
(thanks Christian!)
üst
87695764
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
io.py
Lib/io.py
+3
-3
No files found.
Lib/io.py
Dosyayı görüntüle @
e1e48ea2
...
@@ -61,7 +61,7 @@ import sys
...
@@ -61,7 +61,7 @@ import sys
import
codecs
import
codecs
import
_fileio
import
_fileio
import
warnings
import
warnings
import
threading
from
_thread
import
allocate_lock
as
Lock
# open() uses st_blksize whenever we can
# open() uses st_blksize whenever we can
DEFAULT_BUFFER_SIZE
=
8
*
1024
# bytes
DEFAULT_BUFFER_SIZE
=
8
*
1024
# bytes
...
@@ -896,7 +896,7 @@ class BufferedReader(_BufferedIOMixin):
...
@@ -896,7 +896,7 @@ class BufferedReader(_BufferedIOMixin):
_BufferedIOMixin
.
__init__
(
self
,
raw
)
_BufferedIOMixin
.
__init__
(
self
,
raw
)
self
.
buffer_size
=
buffer_size
self
.
buffer_size
=
buffer_size
self
.
_reset_read_buf
()
self
.
_reset_read_buf
()
self
.
_read_lock
=
threading
.
Lock
()
self
.
_read_lock
=
Lock
()
def
_reset_read_buf
(
self
):
def
_reset_read_buf
(
self
):
self
.
_read_buf
=
b
""
self
.
_read_buf
=
b
""
...
@@ -1022,7 +1022,7 @@ class BufferedWriter(_BufferedIOMixin):
...
@@ -1022,7 +1022,7 @@ class BufferedWriter(_BufferedIOMixin):
if
max_buffer_size
is
None
if
max_buffer_size
is
None
else
max_buffer_size
)
else
max_buffer_size
)
self
.
_write_buf
=
bytearray
()
self
.
_write_buf
=
bytearray
()
self
.
_write_lock
=
threading
.
Lock
()
self
.
_write_lock
=
Lock
()
def
write
(
self
,
b
):
def
write
(
self
,
b
):
if
self
.
closed
:
if
self
.
closed
:
...
...
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