File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,15 @@ def extract_section_darwin(inputFile):
125
125
try :
126
126
octets = []
127
127
for line in lines [1 :]:
128
- m = otool_hexdata .match (line )
128
+ # m = otool_hexdata.match(line)
129
+ m = otool_hexdata .match (line .decode ())
129
130
if not m :
130
131
_logger .debug ('otool output:\n \t %s\n DID NOT match expectations.' , line )
131
132
continue
132
133
octetline = m .group (1 )
133
134
octets .extend (octetline .split ())
134
- retval = '' .join (octets ).decode ('hex' ).splitlines ()
135
+ # retval = ''.join(octets).decode('hex').splitlines()
136
+ retval = decode_hex ('' .join (octets ))[0 ].splitlines ()
135
137
if not retval :
136
138
_logger .error ('%s contained no %s segment' , inputFile , darwinSegmentName )
137
139
except Exception as e :
You can’t perform that action at this time.
0 commit comments