summaryrefslogtreecommitdiffstats
path: root/Lib/decimal.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-11-21 04:08:28 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-11-21 04:08:28 (GMT)
commitd325c4b233bdf36110c4c97e51b895972cbcf672 (patch)
tree844c017173db101ba42ad059dd8ba798e6d04a69 /Lib/decimal.py
parent2dad5cade41eb8ba9880427f313ac2f1d2e1a505 (diff)
downloadcpython-d325c4b233bdf36110c4c97e51b895972cbcf672.zip
cpython-d325c4b233bdf36110c4c97e51b895972cbcf672.tar.gz
cpython-d325c4b233bdf36110c4c97e51b895972cbcf672.tar.bz2
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 b78c2c5..5a9f840 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: