[Piglit] [PATCH] framework: Humanize time values in the HTML report

Damien Lespiau damien.lespiau at intel.com
Fri Nov 15 08:26:07 PST 2013


On Fri, Nov 15, 2013 at 08:11:07AM -0800, Dylan Baker wrote:
> > +    if amount == 'None':
> > +        return 'None'
> 
> the python idiom is 'if not amount: return None'
 
These are strings, not the built-in.

> on a more practicle note, why roll all of this instead of just using 
> datetime.timedelta?

Because it was giving me much more control on how I wanted to display
the time, as you can see.

-- 
Damien


More information about the Piglit mailing list