Updating to python 3 with 2to3. Check llvm/py3k_update.diff and llvm/py3k_update.out for the output from this.
This commit is contained in:
parent
ddbe7ad06a
commit
6d50a337ad
29 changed files with 3455 additions and 143 deletions
|
|
@ -45,11 +45,11 @@ def check_gen(obj, typ):
|
|||
if not isinstance(obj, typ):
|
||||
typ_str = typ.__name__
|
||||
msg = "argument not an instance of llvm.core.%s" % typ_str
|
||||
raise TypeError, msg
|
||||
raise TypeError(msg)
|
||||
|
||||
def check_is_unowned(ownable):
|
||||
if ownable.owner:
|
||||
raise llvm.LLVMException, "object is already owned"
|
||||
raise llvm.LLVMException("object is already owned")
|
||||
|
||||
|
||||
#===----------------------------------------------------------------------===
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue