Skip to content

Commit bf0c5bc

Browse files
authored
Merge pull request PyCQA#995 from PyCQA/remove_indent_size_str
remove indent_size_str
2 parents 94af2a9 + 6ce48d2 commit bf0c5bc

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
@@ -1999,8 +1998,6 @@ def __init__(self, filename=None, lines=None,
19991998
self.multiline = False # in a multiline string?
20001999
self.hang_closing = options.hang_closing
20012000
self.indent_size = options.indent_size
2002-
self.indent_size_str = ({2: 'two', 4: 'four', 8: 'eight'}
2003-
.get(self.indent_size, str(self.indent_size)))
20042001
self.verbose = options.verbose
20052002
self.filename = filename
20062003
# Dictionary where a checker can store its custom state.

0 commit comments

Comments
 (0)