Skip to content

Commit bbd08c3

Browse files
kmk3rusty-snake
andauthored
Update contrib/sort.py
Co-authored-by: rusty-snake <[email protected]>
1 parent 36dc263 commit bbd08c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def check_profile(filename, overwrite):
101101

102102
fixed_profile_str = "\n".join(fixed_profile)
103103
stripped_profile_str = fixed_profile_str.strip() + "\n"
104-
while stripped_profile_str.find("\n\n\n") != -1:
104+
while " \n\n\n" in stripped_profile_str:
105105
stripped_profile_str = stripped_profile_str.replace("\n\n\n", "\n\n")
106106
if stripped_profile_str != fixed_profile_str:
107107
was_fixed = True

0 commit comments

Comments
 (0)