diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-08-30 07:43:14 -0400 |
---|---|---|
committer | Antoine Pitrou <pitrou@free.fr> | 2017-08-30 13:43:14 +0200 |
commit | cb76029b47f26e969317f21d118392a699d1329e (patch) | |
tree | ed3b124aecd18dae3521f87a0ba86a0efff63e29 | |
parent | c67bae04780f9d7590f9f91b4ee5f31c5d75b3c3 (diff) | |
download | cpython-git-cb76029b47f26e969317f21d118392a699d1329e.tar.gz |
Removed noop branch from ctypes code (#3234)
-rw-r--r-- | Lib/ctypes/__init__.py | 5 |
1 files changed, 1 insertions, 4 deletions
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): |