summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/ftplib.py1
-rw-r--r--Lib/multiprocessing/connection.py2
-rw-r--r--Lib/tempfile.py2
3 files changed, 2 insertions, 3 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 2cc4702..c83be2b 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -320,7 +320,6 @@ class FTP:
raise err
else:
raise OSError("getaddrinfo returns an empty list")
- raise OSError(msg)
sock.listen(1)
port = sock.getsockname()[1] # Get proper port
host = self.sock.getsockname()[0] # Get proper host
diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py
index 09ec4fc..9b11a69 100644
--- a/Lib/multiprocessing/connection.py
+++ b/Lib/multiprocessing/connection.py
@@ -29,7 +29,7 @@ from .reduction import ForkingPickler
try:
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:
if sys.platform == 'win32':
raise
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 05d4cab..57e8a82 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -72,7 +72,7 @@ else:
# file doesn't exist.
def _stat(fn):
fd = _os.open(fn, _os.O_RDONLY)
- os.close(fd)
+ _os.close(fd)
def _exists(fn):
try: