summaryrefslogtreecommitdiff
path: root/Lib/decimal.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-11-21 04:08:28 +0000
committerRaymond Hettinger <python@rcn.com>2010-11-21 04:08:28 +0000
commit70b62b12ed037d854c18cad98218fa0a5a5047d6 (patch)
treefb8ce9035023946c153bd2a70ceb99587337d78f /Lib/decimal.py
parent4d09da71ffa58ce0a74d67da1ad3e7ccb799df60 (diff)
downloadcpython-70b62b12ed037d854c18cad98218fa0a5a5047d6.tar.gz
Revert r86517
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r--Lib/decimal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py
index b78c2c5774..5a9f840771 100644
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -943,7 +943,7 @@ class Decimal(object):
# in the documentation. (See library docs, 'Built-in Types').
if self._is_special:
if self.is_snan():
- raise ValueError('Cannot hash a signaling NaN value.')
+ raise TypeError('Cannot hash a signaling NaN value.')
elif self.is_nan():
return _PyHASH_NAN
else: