aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Python/_warnings.c
diff options
context:
space:
mode:
authorsnermolaev <snermolaev@yandex-team.com>2025-04-14 06:15:42 +0300
committersnermolaev <snermolaev@yandex-team.com>2025-04-14 06:28:07 +0300
commit76887f61431dc5999139a8d72882449ca1503660 (patch)
treeb43f61cd54ca09511f92e812bc782d2d8c849374 /contrib/tools/python3/Python/_warnings.c
parent8a826652922c8304490262de6bbb69eb1a9b5751 (diff)
downloadydb-76887f61431dc5999139a8d72882449ca1503660.tar.gz
Subinterpretor compatible __res module
Cython is not yet subinterpreter compatible. There are no ETA when cython is going to support subinterpreters. This PR removes cython from hermetic python imoprt hooks in order to make them subinterpretr-compatible. commit_hash:1b067c37f55a4f1d9a6172df7009c75231cc1e25
Diffstat (limited to 'contrib/tools/python3/Python/_warnings.c')
-rw-r--r--contrib/tools/python3/Python/_warnings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/tools/python3/Python/_warnings.c b/contrib/tools/python3/Python/_warnings.c
index 1f91edbf5cb..f0ab47efb64 100644
--- a/contrib/tools/python3/Python/_warnings.c
+++ b/contrib/tools/python3/Python/_warnings.c
@@ -791,6 +791,10 @@ is_internal_filename(PyObject *filename)
}
}
+ if (_PyUnicode_EqualToASCIIString(filename, "library/python/runtime_py3/__res.py")) {
+ return true;
+ }
+
return false;
}