def is_all_white(line):
 return (re.match('^\\s*$', line) is not None)

def is_all_white ( line ) : return ( re . match ( '^\\s*$' , line ) is not None )
return true if line is empty or all whitespace .