mirror of
https://github.com/ryanamay/pint.git
synced 2024-09-20 01:50:34 +00:00
Restyled by autopep8
This commit is contained in:
parent
c6843be648
commit
9d3eb1dc9b
1 changed files with 8 additions and 8 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue