[Python-checkins] peps: PEP 418: clock_precision.py only uses ASCII to avoid UnicodeEncodeError on

victor.stinner python-checkins at python.org
Tue Apr 17 23:40:58 CEST 2012


http://hg.python.org/peps/rev/9d083c475fd0
changeset:   4258:9d083c475fd0
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Apr 17 23:40:47 2012 +0200
summary:
  PEP 418: clock_precision.py only uses ASCII to avoid UnicodeEncodeError on print()

files:
  pep-0418/clock_precision.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/pep-0418/clock_precision.py b/pep-0418/clock_precision.py
--- a/pep-0418/clock_precision.py
+++ b/pep-0418/clock_precision.py
@@ -26,7 +26,7 @@
     if dt >= 1e-3:
         return "%.0f ms" % (dt * 1e3)
     if dt >= 1e-6:
-        return "%.0f µs" % (dt * 1e6)
+        return "%.0f us" % (dt * 1e6)
     else:
         return "%.0f ns" % (dt * 1e9)
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list