Python: Don't use built-in 'type' as parameter name

This commit is contained in:
Katy Coe
2020-09-02 09:11:25 +02:00
parent 1368d06170
commit 671e028e37

View File

@@ -16,10 +16,10 @@ def DefineCode(code):
def SetFunctionType(addr, sig):
SetType(addr, sig)
def SetType(addr, type):
ret = idc.SetType(addr, type)
def SetType(addr, cppType):
ret = idc.SetType(addr, cppType)
if ret is None:
print('SetType(0x%x, %r) failed!' % (addr, type))
print('SetType(0x%x, %r) failed!' % (addr, cppType))
def SetComment(addr, text):
idc.set_cmt(addr, text, 1)