Skip cross module exception translation on FreeBSD (#5925)

* Skip cross module exception translation on FreeBSD

Signed-off-by: cyy <cyyever@outlook.com>

* Link to PR number

Signed-off-by: cyy <cyyever@outlook.com>

---------

Signed-off-by: cyy <cyyever@outlook.com>
This commit is contained in:
Yuanyuan Chen
2025-12-09 08:00:51 +08:00
committed by GitHub
parent 3ebbecb8af
commit 228f563610
2 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ ANDROID = sys.platform.startswith("android")
LINUX = sys.platform.startswith("linux")
MACOS = sys.platform.startswith("darwin")
WIN = sys.platform.startswith("win32") or sys.platform.startswith("cygwin")
FREEBSD = sys.platform.startswith("freebsd")
CPYTHON = platform.python_implementation() == "CPython"
PYPY = platform.python_implementation() == "PyPy"