Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6dbf9c10
Commit
6dbf9c10
authored
Jul 31, 2001
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize msg to avoid unbound locals.
parent
7364c47f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
0 deletions
+6
-0
Lib/ftplib.py
Lib/ftplib.py
+2
-0
Lib/httplib.py
Lib/httplib.py
+1
-0
Lib/poplib.py
Lib/poplib.py
+1
-0
Lib/smtplib.py
Lib/smtplib.py
+1
-0
Lib/telnetlib.py
Lib/telnetlib.py
+1
-0
No files found.
Lib/ftplib.py
View file @
6dbf9c10
...
...
@@ -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
View file @
6dbf9c10
...
...
@@ -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
View file @
6dbf9c10
...
...
@@ -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
View file @
6dbf9c10
...
...
@@ -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
View file @
6dbf9c10
...
...
@@ -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