diff options
Diffstat (limited to 'textutils.py')
-rw-r--r-- | textutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/textutils.py b/textutils.py index fbaa69a..0524828 100644 --- a/textutils.py +++ b/textutils.py @@ -293,7 +293,7 @@ def apply_units( string, units, inter=None, final=float, blank_reg=_BLANK_RE, value *= units[unit.lower()] except KeyError: raise KeyError('invalid unit %s. valid units are %s' % - unit, units.keys()) + (unit, units.keys())) values.append(value) return final(sum(values)) |