From 70b62b12ed037d854c18cad98218fa0a5a5047d6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 21 Nov 2010 04:08:28 +0000 Subject: Revert r86517 --- Lib/decimal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/decimal.py') 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: -- cgit v1.2.1