Removed noop branch from ctypes code (#3234)
diff --git a/Lib/ctypes/__init__.py b/Lib/ctypes/__init__.py
index f870968..972ea0a 100644
--- a/Lib/ctypes/__init__.py
+++ b/Lib/ctypes/__init__.py
@@ -440,10 +440,7 @@
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):