def idle_showwarning(message, category, filename, lineno, file=None, line=None):
 if (file is None):
  file = warning_stream
 try:
  file.write(idle_formatwarning(message, category, filename, lineno, line=line))
  file.write('>>> ')
 except (AttributeError, IOError):
  pass

def idle_showwarning ( message , category , filename , lineno , file = None , line = None ) : if ( file is None ) : file = warning_stream try : file . write ( idle_formatwarning ( message , category , filename , lineno , line = line ) ) file . write ( '>>> ' ) except ( AttributeError , IOError ) : pass
show idle-format warning .