def safe_shlex_split(text_or_binary):
 return shlex.split(ensure_binary(text_or_binary))

def safe_shlex_split ( text_or_binary ) : return shlex . split ( ensure_binary ( text_or_binary ) )
split a string using shell-like syntax .