summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pint/quantity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pint/quantity.py b/pint/quantity.py
index 330ea97..8cb15da 100644
--- a/pint/quantity.py
+++ b/pint/quantity.py
@@ -128,7 +128,7 @@ class _Quantity(object):
return ret
def __str__(self):
- return '{0} {1}'.format(self._magnitude, self._units)
+ return format(self)
def __repr__(self):
return "<Quantity({0}, '{1}')>".format(self._magnitude, self._units)