Skip to content

Commit

Permalink
Removed noop branch from ctypes code (#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored and pitrou committed Aug 30, 2017
1 parent c67bae0 commit cb76029
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Lib/ctypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,7 @@ def LoadLibrary(self, name):
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):
Expand Down

0 comments on commit cb76029

Please sign in to comment.