Skip to content

Commit 2785b2c

Browse files
Remove code for mixed indentation
1 parent 146332e commit 2785b2c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pylint/checkers/format.py

-13
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,6 @@
149149
"Used when an unexpected number of indentation's tabulations or "
150150
"spaces has been found.",
151151
),
152-
"W0312": (
153-
"Found indentation with %ss instead of %ss",
154-
"mixed-indentation",
155-
"Used when there are some mixed tabs and spaces in a module.",
156-
),
157152
"W0301": (
158153
"Unnecessary semicolon", # was W0106
159154
"unnecessary-semicolon",
@@ -744,13 +739,6 @@ def check_indent_level(self, string, expected, line_num):
744739
level += 1
745740
suppl = ""
746741
while string and string[0] in " \t":
747-
if string[0] != indent[0]:
748-
if string[0] == "\t":
749-
args = ("tab", "space")
750-
else:
751-
args = ("space", "tab")
752-
self.add_message("mixed-indentation", args=args, line=line_num)
753-
return level
754742
suppl += string[0]
755743
string = string[1:]
756744
if level != expected or suppl:
@@ -762,7 +750,6 @@ def check_indent_level(self, string, expected, line_num):
762750
line=line_num,
763751
args=(level * unit_size + len(suppl), i_type, expected * unit_size),
764752
)
765-
return None
766753

767754

768755
def register(linter):

0 commit comments

Comments
 (0)