Skip to content

Commit 357f985

Browse files
committed
maintainers: fix up tabs vs spaces
People repeatedly mis-format MAINTAINERS, just fix it up. Previously we'd overwrite the group. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 9828cb5 commit 357f985

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/maintainers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ def _load_from_lines(self, lines):
6161
if not started:
6262
continue
6363

64+
# Fix up tabs vs spaces
65+
if len(line) > 5 and line[0].isupper() and line[1:4] == ': ':
66+
print("Bad attr line:", group, line.strip())
67+
line = line[:2] + '\t' + line[2:].strip()
68+
6469
if line == '':
6570
if len(group) > 1:
6671
self.entries.add(MaintainersEntry(group))

0 commit comments

Comments
 (0)