diff options
Diffstat (limited to 'Lib/timeit.py')
-rw-r--r-- | Lib/timeit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py index 3d1f300..4ed24de 100644 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -84,7 +84,7 @@ def inner(number, timer): def reindent(src, indent): """Helper to reindent a multi-line statement.""" - return ("\n" + " "*indent).join(src.split("\n")) + return src.replace("\n", "\n" + " "*indent) class Timer: """Class for timing execution speed of small code snippets. |