def _leading_space_count(line):
 i = 0
 while ((i < len(line)) and (line[i] == u' ')):
  i += 1
 return i

def _leading_space_count ( line ) : i = 0 while ( ( i < len ( line ) ) and ( line [ i ] == u' ' ) ) : i += 1 return i
return number of leading spaces in line .