diff options
author | Raymond Hettinger <python@rcn.com> | 2010-11-21 04:08:28 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-11-21 04:08:28 +0000 |
commit | 70b62b12ed037d854c18cad98218fa0a5a5047d6 (patch) | |
tree | fb8ce9035023946c153bd2a70ceb99587337d78f /Lib/decimal.py | |
parent | 4d09da71ffa58ce0a74d67da1ad3e7ccb799df60 (diff) | |
download | cpython-70b62b12ed037d854c18cad98218fa0a5a5047d6.tar.gz |
Revert r86517
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 2 |
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: |