Python3 ready. Py2.7 and Py3 working. Drop PyCObject for all.
Pre Py2.7 support should be possible by including "capsulethunk.h". (See llvm/wrap.h)
This commit is contained in:
parent
0ca676eb8c
commit
9aadd489c3
14 changed files with 163 additions and 1142 deletions
|
|
@ -348,7 +348,7 @@ class Module(llvm.Ownable, llvm.Cacheable):
|
|||
ret = _core.LLVMGetModuleFromBitcode(data)
|
||||
if not ret:
|
||||
raise llvm.LLVMException("Unable to create module from bitcode")
|
||||
elif isinstance(ret, str):
|
||||
elif _util.isstring(ret):
|
||||
raise llvm.LLVMException(ret)
|
||||
else:
|
||||
return Module(ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue