parameters: (func)
return_statement: return wrapper
docstring: decorator which logs any exceptions encountered to stderr
      and returns none.
docstring_summary: decorator which logs any exceptions encountered to stderr
      and returns none.
docstring_tokens: decorator which logs any exceptions encountered to stderr and returns none .
function: def traceback_to_stderr(func):
      """
      decorator which logs any exceptions encountered to stderr
      and returns none.
      """
      @functools.wraps(func)
      def wrapper(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except urllib2.HTTPError, err:
              sys.stderr.write('error: HTTP code %d\n----\n' % err.code)
              if hasattr(err, 'hdrs'):
                  for k, v in err.hdrs.items():
                      sys.stderr.write("%s: %s\n" % (k, v))
                  sys.stderr.write('\n')
              sys.stderr.write(err.read())
              sys.stderr.write('\n----\n')
              sys.stderr.flush()
          except:
              sys.stderr.write('Traceback from buildlogger:\n')
              traceback.print_exc(file=sys.stderr)
              sys.stderr.flush()
          return None
      return wrapper
function_tokens: def traceback_to_stderr ( func ) : @ functools . wraps ( func ) def wrapper ( * args , * * kwargs ) : try : return func ( * args , * * kwargs ) except urllib2 . HTTPError , err : sys . stderr . write ( 'error: HTTP code %d\n----\n' % err . code ) if hasattr ( err , 'hdrs' ) : for k , v in err . hdrs . items ( ) : sys . stderr . write ( "%s: %s\n" % ( k , v ) ) sys . stderr . write ( '\n' ) sys . stderr . write ( err . read ( ) ) sys . stderr . write ( '\n----\n' ) sys . stderr . flush ( ) except : sys . stderr . write ( 'Traceback from buildlogger:\n' ) traceback . print_exc ( file = sys . stderr ) sys . stderr . flush ( ) return None return wrapper