def _shell_split(s):
 try:
  return shlex.split(core.encode(s))
 except ValueError:
  return [core.encode(s)]

def _shell_split ( s ) : try : return shlex . split ( core . encode ( s ) ) except ValueError : return [ core . encode ( s ) ]
split string apart into utf-8 encoded words using shell syntax .