diff options
-rwxr-xr-x | contrib/sort.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/sort.py b/contrib/sort.py index b1f8d350c..babc0ba55 100755 --- a/contrib/sort.py +++ b/contrib/sort.py | |||
@@ -24,7 +24,6 @@ Exit-Codes: | |||
24 | 24 | ||
25 | # Requirements: | 25 | # Requirements: |
26 | # python >= 3.6 | 26 | # python >= 3.6 |
27 | from os import getenv | ||
28 | from sys import argv | 27 | from sys import argv |
29 | 28 | ||
30 | 29 | ||
@@ -96,8 +95,10 @@ def fix_profile(filename): | |||
96 | fixed_line = line | 95 | fixed_line = line |
97 | if fixed_line != line: | 96 | if fixed_line != line: |
98 | was_fixed = True | 97 | was_fixed = True |
99 | if getenv("CI"): | 98 | print( |
100 | print(f"{filename}:{lineno + 1}:{fixed_line}") | 99 | f"{filename}:{lineno + 1}:-{line}\n" |
100 | f"{filename}:{lineno + 1}:+{fixed_line}" | ||
101 | ) | ||
101 | fixed_profile.append(fixed_line) | 102 | fixed_profile.append(fixed_line) |
102 | if was_fixed: | 103 | if was_fixed: |
103 | profile.seek(0) | 104 | profile.seek(0) |