Fix string splitting exception

`string` isn't a type, the author intended to use `str.split()`
This commit is contained in:
Paul Sorensen 2021-04-01 17:54:27 -04:00 committed by GitHub
parent 472ad40077
commit 72cdb5242e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2395,7 +2395,7 @@ class XmlImporter(IdaXml):
# overlayed addresses not currently handled
return BADADDR
elif ':' in addrstr:
[segstr, offset_str] = string.split(addrstr,':')
[segstr, offset_str] = str.split(addrstr,':')
offset = int(offset_str,16)
if self.is_int(segstr) == True:
sgmt = int(segstr,16)
@ -3239,7 +3239,7 @@ class XmlImporter(IdaXml):
idc.warning(msg)
return
elif ':' in addrstr:
[seg_str, offset_str] = string.split(addrstr,':')
[seg_str, offset_str] = str.split(addrstr,':')
offset = int(offset_str, 16)
if self.is_int(seg_str):
base = int(seg_str, 16)