summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth D. Mankoff <mankoff@gmail.com>2014-04-09 22:05:08 +0200
committerHernan Grecco <hernan.grecco@gmail.com>2014-04-09 17:11:07 -0300
commit3cfd8a16b4dac1b340d68e49079fcd180c2b56c2 (patch)
tree0d30553c748420b7d026fa37f48ec23cc8ca3f6e
parent88f7bb3f28ee84912293678836801567a123c8cc (diff)
downloadpint-3cfd8a16b4dac1b340d68e49079fcd180c2b56c2.tar.gz
Print honors default formatw/o format()
-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)