From d1ce6fe53276ea8473f2d4d6686653012047ceca Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Mon, 1 Sep 2025 19:57:41 +0300
Subject: [PATCH 136/N] Fix module name

---
 Lib/ctypes/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Lib/ctypes/__init__.py b/Lib/ctypes/__init__.py
index ce6c18b..30c2a21 100644
--- a/Lib/ctypes/__init__.py
+++ b/Lib/ctypes/__init__.py
@@ -476,7 +476,7 @@ cdll = LibraryLoader(CDLL)
 pydll = LibraryLoader(PyDLL)
 
 if _os.name == "nt":
-    if 'mingw' in sys.version.lower():
+    if 'mingw' in _sys.version.lower():
         pythonapi = PyDLL("libpython%d.%d%s.dll" % (_sys.version_info[:2] + (_sys.abiflags,)), None)
     else:
         pythonapi = PyDLL("python.dll", None, _sys.dllhandle)
