Skip to content

Commit cb76029

Browse files
alexpitrou
authored andcommitted
Removed noop branch from ctypes code (#3234)
1 parent c67bae0 commit cb76029

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/ctypes/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,7 @@ def LoadLibrary(self, name):
440440
windll = LibraryLoader(WinDLL)
441441
oledll = LibraryLoader(OleDLL)
442442

443-
if _os.name == "nt":
444-
GetLastError = windll.kernel32.GetLastError
445-
else:
446-
GetLastError = windll.coredll.GetLastError
443+
GetLastError = windll.kernel32.GetLastError
447444
from _ctypes import get_last_error, set_last_error
448445

449446
def WinError(code=None, descr=None):

0 commit comments

Comments
 (0)