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
f32e4591
Kaydet (Commit)
f32e4591
authored
Nis 04, 2002
tarafından
Jeremy Hylton
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace use of apply() with extended call syntax.
üst
a2c25950
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
asyncore.py
Lib/asyncore.py
+3
-2
No files found.
Lib/asyncore.py
Dosyayı görüntüle @
f32e4591
...
@@ -319,6 +319,7 @@ class dispatcher:
...
@@ -319,6 +319,7 @@ class dispatcher:
raise
socket
.
error
,
err
raise
socket
.
error
,
err
def
accept
(
self
):
def
accept
(
self
):
# XXX can return either an address pair or None
try
:
try
:
conn
,
addr
=
self
.
socket
.
accept
()
conn
,
addr
=
self
.
socket
.
accept
()
return
conn
,
addr
return
conn
,
addr
...
@@ -521,10 +522,10 @@ if os.name == 'posix':
...
@@ -521,10 +522,10 @@ if os.name == 'posix':
self
.
fd
=
fd
self
.
fd
=
fd
def
recv
(
self
,
*
args
):
def
recv
(
self
,
*
args
):
return
apply
(
os
.
read
,
(
self
.
fd
,)
+
args
)
return
os
.
read
(
self
.
fd
,
*
args
)
def
send
(
self
,
*
args
):
def
send
(
self
,
*
args
):
return
apply
(
os
.
write
,
(
self
.
fd
,)
+
args
)
return
os
.
write
(
self
.
fd
,
*
args
)
read
=
recv
read
=
recv
write
=
send
write
=
send
...
...
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