Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69b1e26

Browse files
committed
Issue #20978: pyflakes: fix undefined names
1 parent 790bd6d commit 69b1e26

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/ftplib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ def makeport(self):
320320
raise err
321321
else:
322322
raise OSError("getaddrinfo returns an empty list")
323-
raise OSError(msg)
324323
sock.listen(1)
325324
port = sock.getsockname()[1] # Get proper port
326325
host = self.sock.getsockname()[0] # Get proper host

Lib/multiprocessing/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
try:
3131
import _winapi
32-
from _winapi import WAIT_OBJECT_0, WAIT_TIMEOUT, INFINITE
32+
from _winapi import WAIT_OBJECT_0, WAIT_ABANDONED_0, WAIT_TIMEOUT, INFINITE
3333
except ImportError:
3434
if sys.platform == 'win32':
3535
raise

Lib/tempfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
# file doesn't exist.
7373
def _stat(fn):
7474
fd = _os.open(fn, _os.O_RDONLY)
75-
os.close(fd)
75+
_os.close(fd)
7676

7777
def _exists(fn):
7878
try:

0 commit comments

Comments
 (0)