Skip to content

Commit 3ff3070

Browse files
richardlauBethGriggs
authored andcommitted
tools: fix test.py --time
PR-URL: #27007 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Signed-off-by: Beth Griggs <[email protected]>
1 parent 3e386a7 commit 3ff3070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ def FormatTime(d):
15111511

15121512

15131513
def FormatTimedelta(td):
1514-
if hasattr(td.total, 'total_seconds'):
1514+
if hasattr(td, 'total_seconds'):
15151515
d = td.total_seconds()
15161516
else: # python2.6 compat
15171517
d = td.seconds + (td.microseconds / 10.0**6)

0 commit comments

Comments
 (0)