Issue #20978: pyflakes: fix undefined names
This commit is contained in:
parent
790bd6dd13
commit
69b1e261fc
|
@ -320,7 +320,6 @@ class FTP:
|
||||||
raise err
|
raise err
|
||||||
else:
|
else:
|
||||||
raise OSError("getaddrinfo returns an empty list")
|
raise OSError("getaddrinfo returns an empty list")
|
||||||
raise OSError(msg)
|
|
||||||
sock.listen(1)
|
sock.listen(1)
|
||||||
port = sock.getsockname()[1] # Get proper port
|
port = sock.getsockname()[1] # Get proper port
|
||||||
host = self.sock.getsockname()[0] # Get proper host
|
host = self.sock.getsockname()[0] # Get proper host
|
||||||
|
|
|
@ -29,7 +29,7 @@ from .reduction import ForkingPickler
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import _winapi
|
import _winapi
|
||||||
from _winapi import WAIT_OBJECT_0, WAIT_TIMEOUT, INFINITE
|
from _winapi import WAIT_OBJECT_0, WAIT_ABANDONED_0, WAIT_TIMEOUT, INFINITE
|
||||||
except ImportError:
|
except ImportError:
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
raise
|
raise
|
||||||
|
|
|
@ -72,7 +72,7 @@ else:
|
||||||
# file doesn't exist.
|
# file doesn't exist.
|
||||||
def _stat(fn):
|
def _stat(fn):
|
||||||
fd = _os.open(fn, _os.O_RDONLY)
|
fd = _os.open(fn, _os.O_RDONLY)
|
||||||
os.close(fd)
|
_os.close(fd)
|
||||||
|
|
||||||
def _exists(fn):
|
def _exists(fn):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue