#NEWLINE# def _check_output_encoding( ) : #NEWLINE# #INDENT# no_encoding = ( sys . stdout . encoding is None ) #NEWLINE# utf8 = codecs . lookup ( 'utf8' ) #NEWLINE# if ( not sys . stdout . isatty ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( no_encoding or ( codecs . lookup ( sys . stdout . encoding ) != no_encoding ) ) : #NEWLINE# #INDENT# log . warn ( 'Your terminal is not configured to receive UTF-8 encoded text. Please adjust your locale settings or force UTF-8 output by setting PYTHONIOENCODING="utf-8".' )