def is_text_or_none(string):
 return ((string is None) or isinstance(string, string_types))

def is_text_or_none ( string ) : return ( ( string is None ) or isinstance ( string , string_types ) )
wrapper around isinstance or is none .