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
9a580c44
Kaydet (Commit)
9a580c44
authored
Eyl 24, 2000
tarafından
Nicholas Riley
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixes for Python 1.6 compatibility - socket bind and connect get a
tuple instead two arguments.
üst
21afd01c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
protocol.py
Lib/idlelib/protocol.py
+2
-2
No files found.
Lib/idlelib/protocol.py
Dosyayı görüntüle @
9a580c44
...
...
@@ -328,7 +328,7 @@ class Server (Thread):
try
:
self
.
wellknown
=
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
s
.
bind
(
''
,
self
.
port
)
s
.
bind
(
(
''
,
self
.
port
)
)
s
.
listen
(
3
)
except
:
raise
connectionLost
...
...
@@ -361,7 +361,7 @@ class Server (Thread):
def
Client
(
ip
=
'127.0.0.1'
,
port
=
None
):
try
:
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
s
.
connect
(
ip
,
port
or
Server
.
default_port
)
s
.
connect
(
(
ip
,
port
or
Server
.
default_port
)
)
except
socket
.
error
,
what
:
raise
connectionLost
(
str
(
what
))
except
:
...
...
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