def arg_encoding():
 try:
  return (locale.getdefaultlocale()[1] or 'utf-8')
 except ValueError:
  return 'utf-8'

def arg_encoding ( ) : try : return ( locale . getdefaultlocale ( ) [ 1 ] or 'utf-8' ) except ValueError : return 'utf-8'
get the encoding for command-line arguments .