mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Removed noop branch from ctypes code (#3234)
This commit is contained in:
parent
c67bae0478
commit
cb76029b47
1 changed files with 1 additions and 4 deletions
|
@ -440,10 +440,7 @@ if _os.name == "nt":
|
||||||
windll = LibraryLoader(WinDLL)
|
windll = LibraryLoader(WinDLL)
|
||||||
oledll = LibraryLoader(OleDLL)
|
oledll = LibraryLoader(OleDLL)
|
||||||
|
|
||||||
if _os.name == "nt":
|
|
||||||
GetLastError = windll.kernel32.GetLastError
|
GetLastError = windll.kernel32.GetLastError
|
||||||
else:
|
|
||||||
GetLastError = windll.coredll.GetLastError
|
|
||||||
from _ctypes import get_last_error, set_last_error
|
from _ctypes import get_last_error, set_last_error
|
||||||
|
|
||||||
def WinError(code=None, descr=None):
|
def WinError(code=None, descr=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue