def _FormatAttribute(self, name, value):
    """Formats 'timestamp' as human readable date/time, {'json',
    'first_exception', 'last_exception'} as <pre/> blocks for readability.
    """
    if name in ('json', 'first_exception', 'last_exception'):
      return '<pre>%s</pre>' % self._XEscape(value)
    elif name == 'backoff':
      if value < time.time():
        return '<i>Expired</i>'
      else:
        return self._FormatTimestamp(value)
    else:
      return FmtDefault._FormatAttribute(self, name, value)
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/admin/formatters.py/FmtOperation._FormatAttribute/original