@@ -185,11 +185,11 @@ def munge_file(pp_arch, pp_platform, source_lines, sink):
185
185
"""
186
186
Wraps a single assembly file in appropriate defines.
187
187
"""
188
- sink .write ("#if defined(%s ) && defined(%s )\n " % (pp_arch , pp_platform ))
188
+ sink .write (b "#if defined(%b ) && defined(%b )\n " % (pp_arch . encode () , pp_platform . encode () ))
189
189
for line in source_lines :
190
190
sink .write (line )
191
191
192
- sink .write ("#endif // defined(%s ) && defined(%s )\n " % (pp_arch , pp_platform ))
192
+ sink .write (b "#endif // defined(%b ) && defined(%b )\n " % (pp_arch . encode () , pp_platform . encode () ))
193
193
194
194
195
195
def munge_all_files (osname , arch , asms ):
@@ -214,10 +214,10 @@ def main():
214
214
# Now we need to bring over all the .S files, inserting our preprocessor
215
215
# directives along the way. We do this to allow the C preprocessor to make
216
216
# unneeded assembly files vanish.
217
- for ((osname , arch ), asm_files ) in asm_outputs .iteritems ():
217
+ for ((osname , arch ), asm_files ) in asm_outputs .items ():
218
218
munge_all_files (osname , arch , asm_files )
219
219
220
- for ((osname , arch ), asm_files ) in NON_PERL_FILES .iteritems ():
220
+ for ((osname , arch ), asm_files ) in NON_PERL_FILES .items ():
221
221
for asm_file in asm_files :
222
222
with open (asm_file , 'rb' ) as f :
223
223
lines = f .readlines ()
0 commit comments