diff options
Diffstat (limited to 'Lib/decimal.py')
| -rw-r--r-- | Lib/decimal.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index d0d54fc6b1..a72afdca73 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -648,8 +648,8 @@ class Decimal(object):              return self          if isinstance(value, float): -            raise TypeError("Cannot convert float to Decimal.  " + -                            "First convert the float to a string") +            raise TypeError("Cannot convert float in Decimal constructor. " +                            "Use from_float class method.")          raise TypeError("Cannot convert %r to Decimal" % value)  | 
