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
113f6074
Kaydet (Commit)
113f6074
authored
Mar 06, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify and beautify code
üst
0e94189e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
23 deletions
+12
-23
io.py
Lib/io.py
+12
-23
No files found.
Lib/io.py
Dosyayı görüntüle @
113f6074
...
@@ -58,12 +58,12 @@ __all__ = ["BlockingIOError", "open", "IOBase", "RawIOBase", "FileIO",
...
@@ -58,12 +58,12 @@ __all__ = ["BlockingIOError", "open", "IOBase", "RawIOBase", "FileIO",
import
_io
import
_io
import
abc
import
abc
# open() uses st_blksize whenever we can
from
_io
import
(
DEFAULT_BUFFER_SIZE
,
BlockingIOError
,
UnsupportedOperation
,
DEFAULT_BUFFER_SIZE
=
_io
.
DEFAULT_BUFFER_SIZE
open
,
FileIO
,
BytesIO
,
StringIO
,
BufferedReader
,
BlockingIOError
=
_io
.
BlockingIOError
BufferedWriter
,
BufferedRWPair
,
BufferedRandom
,
UnsupportedOperation
=
_io
.
UnsupportedOperation
IncrementalNewlineDecoder
,
TextIOWrapper
)
open
=
_io
.
open
OpenWrapper
=
_io
.
open
OpenWrapper
=
_io
.
open
# for compatibility with _pyio
# Declaring ABCs in C is tricky so we do it here.
# Declaring ABCs in C is tricky so we do it here.
# Method descriptions and default implementations are inherited from the C
# Method descriptions and default implementations are inherited from the C
...
@@ -80,23 +80,12 @@ class BufferedIOBase(_io._BufferedIOBase, IOBase):
...
@@ -80,23 +80,12 @@ class BufferedIOBase(_io._BufferedIOBase, IOBase):
class
TextIOBase
(
_io
.
_TextIOBase
,
IOBase
):
class
TextIOBase
(
_io
.
_TextIOBase
,
IOBase
):
pass
pass
FileIO
=
_io
.
FileIO
BytesIO
=
_io
.
BytesIO
StringIO
=
_io
.
StringIO
BufferedReader
=
_io
.
BufferedReader
BufferedWriter
=
_io
.
BufferedWriter
BufferedRWPair
=
_io
.
BufferedRWPair
BufferedRandom
=
_io
.
BufferedRandom
IncrementalNewlineDecoder
=
_io
.
IncrementalNewlineDecoder
TextIOWrapper
=
_io
.
TextIOWrapper
RawIOBase
.
register
(
FileIO
)
RawIOBase
.
register
(
FileIO
)
BufferedIOBase
.
register
(
BytesIO
)
for
klass
in
(
BytesIO
,
BufferedReader
,
BufferedWriter
,
BufferedRandom
,
BufferedIOBase
.
register
(
BufferedReader
)
BufferedRWPair
):
BufferedIOBase
.
register
(
BufferedWriter
)
BufferedIOBase
.
register
(
klass
)
BufferedIOBase
.
register
(
BufferedRandom
)
BufferedIOBase
.
register
(
BufferedRWPair
)
TextIOBase
.
register
(
StringIO
)
for
klass
in
(
StringIO
,
TextIOWrapper
):
TextIOBase
.
register
(
TextIOWrapper
)
TextIOBase
.
register
(
klass
)
del
klass
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