diff options
Diffstat (limited to 'util/style')
-rw-r--r-- | util/style/verifiers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/style/verifiers.py b/util/style/verifiers.py index 33b127a79..3cc513429 100644 --- a/util/style/verifiers.py +++ b/util/style/verifiers.py @@ -378,11 +378,12 @@ class SortedIncludes(Verifier): @safefix def fix(self, filename, regions=all_regions): f = self.open(filename, 'r+') + norm_fname = self.normalize_filename(filename) old = f.readlines() lines = [ l.rstrip('\n') for l in old ] language = lang_type(filename, lines[0]) - sort_lines = list(self.sort_includes(lines, filename, language)) + sort_lines = list(self.sort_includes(lines, norm_fname, language)) new = ''.join(line + '\n' for line in sort_lines) f.seek(0) |