def is_blank_line(line, allow_spaces=0):
 if (not line):
  return 1
 if allow_spaces:
  return (line.rstrip() == '')
 return ((line[0] == '\n') or (line[0] == '\r'))

def is_blank_line ( line , allow_spaces = 0 ) : if ( not line ) : return 1 if allow_spaces : return ( line . rstrip ( ) == '' ) return ( ( line [ 0 ] == '\n' ) or ( line [ 0 ] == '\r' ) )
is_blank_line -> boolean return whether a line is blank .