def sys_encode(thing):
 if isinstance(thing, unicode_str):
  return thing.encode(ENCODING)
 return thing

def sys_encode ( thing ) : if isinstance ( thing , unicode_str ) : return thing . encode ( ENCODING ) return thing
return bytes encoded in the systems encoding .