Skip to content

Commit 6161daf

Browse files
authored
Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 98c5876 commit 6161daf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/ctypes/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,10 @@ def LoadLibrary(self, name):
549549

550550
if _os.name == "nt":
551551
pythonapi = PyDLL("python dll", None, _sys.dllhandle)
552-
elif _sys.platform in ["android"]:
552+
elif _sys.platform == "android":
553553
# These are Unix-like platforms which use a dynamically-linked libpython.
554554
pythonapi = PyDLL(_sysconfig.get_config_var("LDLIBRARY"))
555-
elif _sys.platform in ["cygwin"]:
555+
elif _sys.platform == "cygwin":
556556
# These platforms must load the DLL file from DLLLIBRARY
557557
# and not the import library provided by LDLIBRARY.
558558
pythonapi = PyDLL(_sysconfig.get_config_var("DLLLIBRARY"))

0 commit comments

Comments
 (0)