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

def get_preferred_file_contents_encoding ( ) : return ( locale . getpreferredencoding ( ) or u'utf-8' )
get encoding preferred for file contents .