Skip to content

Commit 6806244

Browse files
committed
Remove dead code
1 parent ab5aaa5 commit 6806244

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/ctypes/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ class CFunctionType(_CFuncPtr):
108108
return CFunctionType
109109

110110
if _os.name == "nt":
111-
# from _ctypes import LoadLibrary as _dlopen
112111
from _ctypes import LoadLibrary as _LoadLibrary
113112
from _ctypes import FUNCFLAG_STDCALL as _FUNCFLAG_STDCALL
114113

@@ -138,7 +137,6 @@ class WinFunctionType(_CFuncPtr):
138137
WINFUNCTYPE.__doc__ = CFUNCTYPE.__doc__.replace("CFUNCTYPE", "WINFUNCTYPE")
139138

140139
elif _os.name == "posix":
141-
# from _ctypes import dlopen as _dlopen
142140
from _ctypes import dlopen as _dlopen
143141

144142
from _ctypes import sizeof, byref, addressof, alignment, resize
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Allows creating a :class:`ctypes.CDLL` without name when passing a handle as
2+
an argument.

0 commit comments

Comments
 (0)