summaryrefslogtreecommitdiffstats
path: root/Lib/decimal.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r--Lib/decimal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py
index 5638bd7..98e1d06 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)