def report_warning(message):
 if (sys.stderr.isatty() and (compat_os_name != u'nt')):
  _msg_header = u'\x1b[0;33mWARNING:\x1b[0m'
 else:
  _msg_header = u'WARNING:'
 output = (u'%s %s\n' % (_msg_header, message))
 if ((u'b' in getattr(sys.stderr, u'mode', u'')) or (sys.version_info[0] < 3)):
  output = output.encode(preferredencoding())
 sys.stderr.write(output)

def report_warning ( message ) : if ( sys . stderr . isatty ( ) and ( compat_os_name != u'nt' ) ) : _msg_header = u'\x1b[0;33mWARNING:\x1b[0m' else : _msg_header = u'WARNING:' output = ( u'%s %s\n' % ( _msg_header , message ) ) if ( ( u'b' in getattr ( sys . stderr , u'mode' , u'' ) ) or ( sys . version_info [ 0 ] < 3 ) ) : output = output . encode ( preferredencoding ( ) ) sys . stderr . write ( output )
print the message to stderr .