mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
for/write → writelines
This commit is contained in:
parent
c85e4f3d52
commit
78c818e4c9
@ -25,7 +25,7 @@ def total_bank_size(type):
|
||||
}
|
||||
return sizes[type]
|
||||
|
||||
def sorted_mapfile(input):
|
||||
def map_to_sym(input):
|
||||
# analogous to ";File generated by rgblink"
|
||||
yield ';File generated by sort_map.py\n'
|
||||
|
||||
@ -117,10 +117,9 @@ def main():
|
||||
output_filename = sys.argv[2]
|
||||
with open(input_filename, 'r') as infile:
|
||||
input = infile.readlines()
|
||||
output = sorted_mapfile(input)
|
||||
output = map_to_sym(input)
|
||||
with open(output_filename, 'w') as outfile:
|
||||
for line in output:
|
||||
outfile.write(line)
|
||||
outfile.writelines(output)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user