Restyled by autopep8

This commit is contained in:
Restyled.io 2022-07-22 05:47:59 +00:00
parent c6843be648
commit 9d3eb1dc9b

View file

@ -1,11 +1,11 @@
with open('formatted.txt', 'a') as f: with open('formatted.txt', 'a') as f:
x = open('colors.txt','r') x = open('colors.txt', 'r')
prev_line = '' prev_line = ''
for current_line in x: for current_line in x:
if prev_line.split("=>")[0].strip() != current_line.split("=>")[0].strip(): if prev_line.split("=>")[0].strip() != current_line.split("=>")[0].strip():
f.write('\n') f.write('\n')
f.write(current_line) f.write(current_line)
prev_line = current_line prev_line = current_line
x.close() x.close()