def _handle_exception():
 if sys.stderr:
  einfo = sys.exc_info()
  try:
   traceback.print_exception(einfo[0], einfo[1], einfo[2], None, sys.stderr)
  except IOError:
   pass
  finally:
   del einfo

def _handle_exception ( ) : if sys . stderr : einfo = sys . exc_info ( ) try : traceback . print_exception ( einfo [ 0 ] , einfo [ 1 ] , einfo [ 2 ] , None , sys . stderr ) except IOError : pass finally : del einfo
print exceptions raised by subscribers to stderr .