Show More
@@ -774,7 +774,12 python-profiler package from non-free.""") | |||
|
774 | 774 | setup = timeit.reindent(stmt, 4) |
|
775 | 775 | stmt = timeit.reindent(cell, 8) |
|
776 | 776 | |
|
777 | src = timeit.template % dict(stmt=stmt, setup=setup) | |
|
777 | # From Python 3.3, this template uses new-style string formatting. | |
|
778 | if sys.version_info >= (3, 3): | |
|
779 | src = timeit.template.format(stmt=stmt, setup=setup) | |
|
780 | else: | |
|
781 | src = timeit.template % dict(stmt=stmt, setup=setup) | |
|
782 | ||
|
778 | 783 | # Track compilation time so it can be reported if too long |
|
779 | 784 | # Minimum time above which compilation time will be reported |
|
780 | 785 | tc_min = 0.1 |
General Comments 0
You need to be logged in to leave comments.
Login now