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
2ad2569c
Kaydet (Commit)
2ad2569c
authored
Tem 31, 2001
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Initialize msg to avoid unbound locals.
üst
7d9ed726
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
0 deletions
+6
-0
ftplib.py
Lib/ftplib.py
+2
-0
httplib.py
Lib/httplib.py
+1
-0
poplib.py
Lib/poplib.py
+1
-0
smtplib.py
Lib/smtplib.py
+1
-0
telnetlib.py
Lib/telnetlib.py
+1
-0
No files found.
Lib/ftplib.py
Dosyayı görüntüle @
2ad2569c
...
...
@@ -115,6 +115,7 @@ class FTP:
if
host
:
self
.
host
=
host
if
port
:
self
.
port
=
port
self
.
passiveserver
=
0
msg
=
"getaddrinfo returns an empty list"
for
res
in
socket
.
getaddrinfo
(
self
.
host
,
self
.
port
,
0
,
socket
.
SOCK_STREAM
):
af
,
socktype
,
proto
,
canonname
,
sa
=
res
try
:
...
...
@@ -270,6 +271,7 @@ class FTP:
def
makeport
(
self
):
'''Create a new socket and send a PORT command for it.'''
msg
=
"getaddrinfo returns an empty list"
for
res
in
socket
.
getaddrinfo
(
None
,
0
,
self
.
af
,
socket
.
SOCK_STREAM
,
0
,
socket
.
AI_PASSIVE
):
af
,
socktype
,
proto
,
canonname
,
sa
=
res
try
:
...
...
Lib/httplib.py
Dosyayı görüntüle @
2ad2569c
...
...
@@ -357,6 +357,7 @@ class HTTPConnection:
def
connect
(
self
):
"""Connect to the host and port specified in __init__."""
msg
=
"getaddrinfo returns an empty list"
for
res
in
socket
.
getaddrinfo
(
self
.
host
,
self
.
port
,
0
,
socket
.
SOCK_STREAM
):
af
,
socktype
,
proto
,
canonname
,
sa
=
res
try
:
...
...
Lib/poplib.py
Dosyayı görüntüle @
2ad2569c
...
...
@@ -75,6 +75,7 @@ class POP3:
def
__init__
(
self
,
host
,
port
=
POP3_PORT
):
self
.
host
=
host
self
.
port
=
port
msg
=
"getaddrinfo returns an empty list"
for
res
in
socket
.
getaddrinfo
(
self
.
host
,
self
.
port
,
0
,
socket
.
SOCK_STREAM
):
af
,
socktype
,
proto
,
canonname
,
sa
=
res
try
:
...
...
Lib/smtplib.py
Dosyayı görüntüle @
2ad2569c
...
...
@@ -217,6 +217,7 @@ class SMTP:
raise
socket
.
error
,
"nonnumeric port"
if
not
port
:
port
=
SMTP_PORT
if
self
.
debuglevel
>
0
:
print
'connect:'
,
(
host
,
port
)
msg
=
"getaddrinfo returns an empty list"
for
res
in
socket
.
getaddrinfo
(
host
,
port
,
0
,
socket
.
SOCK_STREAM
):
af
,
socktype
,
proto
,
canonname
,
sa
=
res
try
:
...
...
Lib/telnetlib.py
Dosyayı görüntüle @
2ad2569c
...
...
@@ -136,6 +136,7 @@ class Telnet:
port
=
TELNET_PORT
self
.
host
=
host
self
.
port
=
port
msg
=
"getaddrinfo returns an empty list"
for
res
in
socket
.
getaddrinfo
(
host
,
port
,
0
,
socket
.
SOCK_STREAM
):
af
,
socktype
,
proto
,
canonname
,
sa
=
res
try
:
...
...
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