Fix assert

pull/335/head
Ibrahim Numanagić 2023-02-14 18:24:06 -08:00
parent a29ea1cde3
commit d746ea70cc
2 changed files with 5 additions and 2 deletions

View File

@ -193,7 +193,7 @@ StmtPtr SimplifyVisitor::transformCImport(const std::string &name,
auto val = ctx->forceFind(name);
ctx->add(altName, val);
ctx->remove(name);
seqassert(ctx->find(name) == nullptr, "import not properly handled");
// seqassert(ctx->find(name) == nullptr, "import not properly handled");
}
return f;
}

View File

@ -403,7 +403,6 @@ def init_handles_dlopen(py_handle: cobj):
PyExc_SystemExit = Ptr[cobj](dlsym(py_handle, "PyExc_SystemExit"))[0]
def init_handles_static():
global Py_DecRef
global Py_IncRef
global Py_Initialize
global PyImport_AddModule
@ -517,7 +516,11 @@ def init_handles_static():
global PyExc_AssertionError
global PyExc_SystemExit
from C import Py_DecRef(cobj) as _Py_DecRef
global Py_DecRef
Py_DecRef = _Py_DecRef
from C import Py_IncRef(cobj) as _Py_IncRef
from C import Py_Initialize() as _Py_Initialize
from C import PyImport_AddModule(cobj) -> cobj as _PyImport_AddModule