Skip to content

Commit 6ce48d2

Browse files
committed
remove indent_size_str
1 parent aa3417b commit 6ce48d2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pycodestyle.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def missing_whitespace(logical_line):
564564
@register_check
565565
def indentation(logical_line, previous_logical, indent_char,
566566
indent_level, previous_indent_level,
567-
indent_size, indent_size_str):
567+
indent_size):
568568
r"""Use indent_size (PEP8 says 4) spaces per indentation level.
569569
570570
For really old code that you don't want to mess up, you can continue
@@ -588,7 +588,7 @@ def indentation(logical_line, previous_logical, indent_char,
588588
if indent_level % indent_size:
589589
yield 0, tmpl % (
590590
1 + c,
591-
"indentation is not a multiple of " + indent_size_str,
591+
"indentation is not a multiple of " + str(indent_size),
592592
)
593593
indent_expect = previous_logical.endswith(':')
594594
if indent_expect and indent_level <= previous_indent_level:
@@ -605,8 +605,7 @@ def indentation(logical_line, previous_logical, indent_char,
605605

606606
@register_check
607607
def continued_indentation(logical_line, tokens, indent_level, hang_closing,
608-
indent_char, indent_size, indent_size_str, noqa,
609-
verbose):
608+
indent_char, indent_size, noqa, verbose):
610609
r"""Continuation lines indentation.
611610
612611
Continuation lines should align wrapped elements either vertically
@@ -1997,8 +1996,6 @@ def __init__(self, filename=None, lines=None,
19971996
self.multiline = False # in a multiline string?
19981997
self.hang_closing = options.hang_closing
19991998
self.indent_size = options.indent_size
2000-
self.indent_size_str = ({2: 'two', 4: 'four', 8: 'eight'}
2001-
.get(self.indent_size, str(self.indent_size)))
20021999
self.verbose = options.verbose
20032000
self.filename = filename
20042001
# Dictionary where a checker can store its custom state.

0 commit comments

Comments
 (0)