idautils.py: Small whitespace and indentation fixes

This commit is contained in:
gergely.erdelyi 2009-10-17 20:38:40 +00:00
parent 9c80378afe
commit 8e66e14588

View File

@ -171,11 +171,13 @@ def XrefsTo(ea, flags=0):
while xref.next_to():
yield _copy_xref(xref)
def Threads():
"""Returns all thread IDs"""
for i in xrange(0, idc.GetThreadQty()):
yield idc.GetThreadId(i)
def Heads(start=idaapi.cvar.inf.minEA, end=idaapi.cvar.inf.maxEA):
"""
Get a list of heads (instructions or data)
@ -452,7 +454,7 @@ def _Assemble(ea, line):
ip = ea - (idaapi.ask_selector(seg.sel) << 4)
buf = idaapi.AssembleLine(ea, seg.sel, ip, seg.bitness, line)
if not buf:
return (False, "Assembler failed: " + line)
return (False, "Assembler failed: " + line)
ea += len(buf)
ret.append(buf)