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

Skip to content

Commit a69f0f9

Browse files
committed
(Merge 3.4) Issue #20978: pyflakes: fix undefined names; remove last part of
OS/2 support in distutils
2 parents e5280fe + 69b1e26 commit a69f0f9

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

Lib/distutils/spawn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def spawn(cmd, search_path=1, verbose=0, dry_run=0):
3636
_spawn_posix(cmd, search_path, dry_run=dry_run)
3737
elif os.name == 'nt':
3838
_spawn_nt(cmd, search_path, dry_run=dry_run)
39-
elif os.name == 'os2':
40-
_spawn_os2(cmd, search_path, dry_run=dry_run)
4139
else:
4240
raise DistutilsPlatformError(
4341
"don't know how to spawn programs on platform '%s'" % os.name)

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)