File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ def extract_section_darwin(inputFile):
139
139
octetline = m .group (1 )
140
140
octets .extend (octetline .split ())
141
141
retval = decode_hex ('' .join (octets ))[0 ].splitlines ()
142
+ # these have become bytes in the "evolution" of python
143
+ retval = [ f .decode ('utf8' ) for f in retval ]
142
144
if not retval :
143
145
_logger .error ('%s contained no %s segment' , inputFile , darwinSegmentName )
144
146
except Exception as e :
@@ -406,10 +408,7 @@ def handleArchiveDarwin(pArgs):
406
408
407
409
#write the manifest file if asked for
408
410
if pArgs .manifestFlag :
409
- manifestFile = f'{ pArgs .inputFile } .llvm.manifest'
410
- with open (manifestFile , 'w' ) as output :
411
- for f in bitCodeFiles :
412
- output .write (f'{ f } \n ' )
411
+ writeManifest (f'{ pArgs .inputFile } .llvm.manifest' , bitCodeFiles )
413
412
414
413
# Build bitcode archive
415
414
os .chdir (originalDir )
You can’t perform that action at this time.
0 commit comments