##// END OF EJS Templates
Avoid using a temporary variable by returning the value directly.
Abhinav Upadhyay -
Show More
@@ -1284,5 +1284,4 b' def _format_time(timespan, precision=3):'
1284 order = min(-int(math.floor(math.log10(timespan)) // 3), 3)
1284 order = min(-int(math.floor(math.log10(timespan)) // 3), 3)
1285 else:
1285 else:
1286 order = 3
1286 order = 3
1287 ret = u"%.*g %s" % (precision, timespan * scaling[order], units[order])
1287 return u"%.*g %s" % (precision, timespan * scaling[order], units[order])
1288 return ret
General Comments 0
You need to be logged in to leave comments. Login now