Skip to content

Commit

Permalink
Removed noop branch from ctypes code (python#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored and GadgetSteve committed Sep 10, 2017
1 parent 2da135d commit 357d224
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 357d224

Please sign in to comment.