From: Alex Gaynor Date: Wed, 30 Aug 2017 11:43:14 +0000 (-0400) Subject: Removed noop branch from ctypes code (#3234) X-Git-Tag: v3.7.0a1~202 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb76029b47f26e969317f21d118392a699d1329e;p=python Removed noop branch from ctypes code (#3234) --- diff --git a/Lib/ctypes/__init__.py b/Lib/ctypes/__init__.py index f8709683fb..972ea0ac87 100644 --- a/Lib/ctypes/__init__.py +++ b/Lib/ctypes/__init__.py @@ -440,10 +440,7 @@ if _os.name == "nt": windll = LibraryLoader(WinDLL) oledll = LibraryLoader(OleDLL) - if _os.name == "nt": - GetLastError = windll.kernel32.GetLastError - else: - GetLastError = windll.coredll.GetLastError + GetLastError = windll.kernel32.GetLastError from _ctypes import get_last_error, set_last_error def WinError(code=None, descr=None):