From 9d3eb1dc9b48ee906d724afa5b8217bf7e923f97 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 22 Jul 2022 05:47:59 +0000 Subject: [PATCH] Restyled by autopep8 --- tools/csstosort.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/csstosort.py b/tools/csstosort.py index 65e19d0..9bb31e0 100644 --- a/tools/csstosort.py +++ b/tools/csstosort.py @@ -1,11 +1,11 @@ with open('formatted.txt', 'a') as f: - x = open('colors.txt','r') - prev_line = '' + x = open('colors.txt', 'r') + prev_line = '' - for current_line in x: - if prev_line.split("=>")[0].strip() != current_line.split("=>")[0].strip(): - f.write('\n') - f.write(current_line) - prev_line = current_line + for current_line in x: + if prev_line.split("=>")[0].strip() != current_line.split("=>")[0].strip(): + f.write('\n') + f.write(current_line) + prev_line = current_line - x.close() \ No newline at end of file + x.close()