Skip to content

Commit 5f37edd

Browse files
itamarometa-codesync[bot]
authored andcommitted
Workaround assertion with Native Python extensions in packages
Summary: Until there's more clarity from python/cpython#140011, let's comment out this assertion to unbreak things Reviewed By: alexmalyshev Differential Revision: D84466786 fbshipit-source-id: a70c2613fe49484683ae24a19d7dc9b124dc20bd
1 parent ab1e33c commit 5f37edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/importdl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ _Py_ext_module_loader_info_init_for_builtin(
175175
PyObject *name)
176176
{
177177
assert(PyUnicode_Check(name));
178-
assert(PyUnicode_FindChar(name, '.', 0, PyUnicode_GetLength(name), -1) == -1);
178+
// assert(PyUnicode_FindChar(name, '.', 0, PyUnicode_GetLength(name), -1) == -1);
179179
assert(PyUnicode_GetLength(name) > 0);
180180

181181
PyObject *name_encoded = PyUnicode_AsEncodedString(name, "ascii", NULL);

0 commit comments

Comments
 (0)