def last_blank(src):
 if (not src):
  return False
 ll = src.splitlines()[(-1)]
 return ((ll == '') or ll.isspace())

def last_blank ( src ) : if ( not src ) : return False ll = src . splitlines ( ) [ ( - 1 ) ] return ( ( ll == '' ) or ll . isspace ( ) )
determine if the input source ends in a blank .