tools: python_gut: Display files with tabs correctly.
This commit is contained in:
parent
769b7e2256
commit
0cb13e0c65
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ def python_gut(path):
|
|||
for start_line, end_line in _function_body_lines(python_source):
|
||||
del lines[start_line-deleted:end_line-deleted]
|
||||
deleted += (end_line - start_line)
|
||||
gutted_source = "".join(lines)
|
||||
gutted_source = "".join(lines).expandtabs(tabsize=4)
|
||||
return Status.ok, _syntax_highlight_using_path(gutted_source, path)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue