def get_preferred_environment_encoding():
 return (locale.getpreferredencoding() or u'utf-8')

def get_preferred_environment_encoding ( ) : return ( locale . getpreferredencoding ( ) or u'utf-8' )
get encoding that should be used for decoding environment variables .