def expand_indent(line):
 if (' DCTB ' not in line):
  return (len(line) - len(line.lstrip()))
 result = 0
 for char in line:
  if (char == ' DCTB '):
   result = (((result // 8) * 8) + 8)
  elif (char == ' '):
   result += 1
  else:
   break
 return result

def expand_indent ( line ) : if ( ' DCTB ' not in line ) : return ( len ( line ) - len ( line . lstrip ( ) ) ) result = 0 for char in line : if ( char == ' DCTB ' ) : result = ( ( ( result // 8 ) * 8 ) + 8 ) elif ( char == ' ' ) : result += 1 else : break return result
return the amount of indentation .