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
efef9d3f
Kaydet (Commit)
efef9d3f
authored
Ock 10, 2014
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
asyncio: Tiny cleanup in streams.py.
üst
2407f3bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
streams.py
Lib/asyncio/streams.py
+2
-2
No files found.
Lib/asyncio/streams.py
Dosyayı görüntüle @
efef9d3f
...
@@ -38,7 +38,7 @@ def open_connection(host=None, port=None, *,
...
@@ -38,7 +38,7 @@ def open_connection(host=None, port=None, *,
if
loop
is
None
:
if
loop
is
None
:
loop
=
events
.
get_event_loop
()
loop
=
events
.
get_event_loop
()
reader
=
StreamReader
(
limit
=
limit
,
loop
=
loop
)
reader
=
StreamReader
(
limit
=
limit
,
loop
=
loop
)
protocol
=
StreamReaderProtocol
(
reader
)
protocol
=
StreamReaderProtocol
(
reader
,
loop
=
loop
)
transport
,
_
=
yield
from
loop
.
create_connection
(
transport
,
_
=
yield
from
loop
.
create_connection
(
lambda
:
protocol
,
host
,
port
,
**
kwds
)
lambda
:
protocol
,
host
,
port
,
**
kwds
)
writer
=
StreamWriter
(
transport
,
protocol
,
reader
,
loop
)
writer
=
StreamWriter
(
transport
,
protocol
,
reader
,
loop
)
...
@@ -151,7 +151,7 @@ class StreamWriter:
...
@@ -151,7 +151,7 @@ class StreamWriter:
This exposes write(), writelines(), [can_]write_eof(),
This exposes write(), writelines(), [can_]write_eof(),
get_extra_info() and close(). It adds drain() which returns an
get_extra_info() and close(). It adds drain() which returns an
optional Future on which you can wait for flow control. It also
optional Future on which you can wait for flow control. It also
adds a transport
attribute
which references the Transport
adds a transport
property
which references the Transport
directly.
directly.
"""
"""
...
...
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