MINGW-packages/mingw-w64-python3.13/0136-Fix-module-name.patch
Christoph Reiter 04c9ed3700 python3.13: Add 3.13.7
* add libb2 as dep
* remove "-Wl,--large-address-aware", default now via makepkg
* remove 2to3 logic, no longer in Python
2025-09-08 22:02:30 +02:00

23 lines
778 B
Diff

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)