def indentation(logical_line, previous_logical, indent_char, indent_level, previous_indent_level):
 if ((indent_char == ' ') and (indent_level % 4)):
  (yield (0, 'E111 indentation is not a multiple of four'))
 indent_expect = previous_logical.endswith(':')
 if (indent_expect and (indent_level <= previous_indent_level)):
  (yield (0, 'E112 expected an indented block'))
 if ((indent_level > previous_indent_level) and (not indent_expect)):
  (yield (0, 'E113 unexpected indentation'))

def indentation ( logical_line , previous_logical , indent_char , indent_level , previous_indent_level ) : if ( ( indent_char == ' ' ) and ( indent_level % 4 ) ) : ( yield ( 0 , 'E111 indentation is not a multiple of four' ) ) indent_expect = previous_logical . endswith ( ':' ) if ( indent_expect and ( indent_level <= previous_indent_level ) ) : ( yield ( 0 , 'E112 expected an indented block' ) ) if ( ( indent_level > previous_indent_level ) and ( not indent_expect ) ) : ( yield ( 0 , 'E113 unexpected indentation' ) )
use 4 spaces per indentation level .