Skip to content

Commit

Permalink
tools: fix test.py --time
Browse files Browse the repository at this point in the history
PR-URL: #27007
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
  • Loading branch information
richardlau authored and BethGriggs committed Apr 9, 2019
1 parent 3e386a7 commit 3ff3070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ def FormatTime(d):


def FormatTimedelta(td):
if hasattr(td.total, 'total_seconds'):
if hasattr(td, 'total_seconds'):
d = td.total_seconds()
else: # python2.6 compat
d = td.seconds + (td.microseconds / 10.0**6)
Expand Down

0 comments on commit 3ff3070

Please sign in to comment.