@@ -564,7 +564,7 @@ def missing_whitespace(logical_line):
564
564
@register_check
565
565
def indentation (logical_line , previous_logical , indent_char ,
566
566
indent_level , previous_indent_level ,
567
- indent_size , indent_size_str ):
567
+ indent_size ):
568
568
r"""Use indent_size (PEP8 says 4) spaces per indentation level.
569
569
570
570
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,
588
588
if indent_level % indent_size :
589
589
yield 0 , tmpl % (
590
590
1 + c ,
591
- "indentation is not a multiple of " + indent_size_str ,
591
+ "indentation is not a multiple of " + str ( indent_size ) ,
592
592
)
593
593
indent_expect = previous_logical .endswith (':' )
594
594
if indent_expect and indent_level <= previous_indent_level :
@@ -605,8 +605,7 @@ def indentation(logical_line, previous_logical, indent_char,
605
605
606
606
@register_check
607
607
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 ):
610
609
r"""Continuation lines indentation.
611
610
612
611
Continuation lines should align wrapped elements either vertically
@@ -1999,8 +1998,6 @@ def __init__(self, filename=None, lines=None,
1999
1998
self .multiline = False # in a multiline string?
2000
1999
self .hang_closing = options .hang_closing
2001
2000
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 )))
2004
2001
self .verbose = options .verbose
2005
2002
self .filename = filename
2006
2003
# Dictionary where a checker can store its custom state.
0 commit comments