From 6c44fe0a87186b05f0ba54143be3a071358d099c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 5 Oct 2014 21:35:24 +0800 Subject: [PATCH] language/units: fix printing --- artiq/language/units.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/language/units.py b/artiq/language/units.py index 588631f5e..f79107ead 100644 --- a/artiq/language/units.py +++ b/artiq/language/units.py @@ -41,9 +41,9 @@ class Quantity: prefix_str = _prefixes_str[r_prefix] if prefix_str == "_": prefix_str = "" - return str(r_amount) + " " + prefix_str + self.unit.name + return str(r_amount) + " " + prefix_str + self.unit else: - return str(r_amount) + " " + self.unit.name + return str(r_amount) + " " + self.unit # mul/div def __mul__(self, other):