summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-08-30 11:43:14 (GMT)
committerAntoine Pitrou <pitrou@free.fr>2017-08-30 11:43:14 (GMT)
commitcb76029b47f26e969317f21d118392a699d1329e (patch)
treeed3b124aecd18dae3521f87a0ba86a0efff63e29 /Lib
parentc67bae04780f9d7590f9f91b4ee5f31c5d75b3c3 (diff)
downloadcpython-cb76029b47f26e969317f21d118392a699d1329e.zip
cpython-cb76029b47f26e969317f21d118392a699d1329e.tar.gz
cpython-cb76029b47f26e969317f21d118392a699d1329e.tar.bz2
Removed noop branch from ctypes code (#3234)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/__init__.py5
1 files changed, 1 insertions, 4 deletions
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 @@ 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):