[Python-checkins] cpython: Issue #28240: Fix formatting of the warning.

victor.stinner python-checkins at python.org
Wed Oct 19 09:52:57 EDT 2016


https://hg.python.org/cpython/rev/4e4d4e9183f5
changeset:   104560:4e4d4e9183f5
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Oct 19 15:48:23 2016 +0200
summary:
  Issue #28240: Fix formatting of the warning.

files:
  Lib/timeit.py |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Lib/timeit.py b/Lib/timeit.py
--- a/Lib/timeit.py
+++ b/Lib/timeit.py
@@ -365,8 +365,7 @@
         warnings.warn_explicit("The test results are likely unreliable. "
                                "The worst time (%s) was more than four times "
                                "slower than the best time (%s)."
-                               % (precision,
-                                  format_time(worst), format_time(best)),
+                               % (format_time(worst), format_time(best)),
                                UserWarning, '', 0)
     return None
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list