@real_memoize
def get_encodings():
 encodings = [__salt_system_encoding__]
 try:
  sys_enc = sys.getdefaultencoding()
 except ValueError:
  sys_enc = None
 if (sys_enc and (sys_enc not in encodings)):
  encodings.append(sys_enc)
 for enc in ['utf-8', 'latin-1']:
  if (enc not in encodings):
   encodings.append(enc)
 return encodings

@ real_memoize def get_encodings ( ) : encodings = [ __salt_system_encoding__ ] try : sys_enc = sys . getdefaultencoding ( ) except ValueError : sys_enc = None if ( sys_enc and ( sys_enc not in encodings ) ) : encodings . append ( sys_enc ) for enc in [ 'utf-8' , 'latin-1' ] : if ( enc not in encodings ) : encodings . append ( enc ) return encodings
return a list of string encodings to try .