From dbecd93b7203cd187c1978de1207c29d3a9a686c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 6 Feb 2005 06:57:08 +0000 Subject: Replace list of constants with tuples of constants. --- 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 05bdc99f4e..90e2dccefa 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -515,7 +515,7 @@ class Decimal(object): if isinstance(value, (list,tuple)): if len(value) != 3: raise ValueError, 'Invalid arguments' - if value[0] not in [0,1]: + if value[0] not in (0,1): raise ValueError, 'Invalid sign' for digit in value[1]: if not isinstance(digit, (int,long)) or digit < 0: -- cgit v1.2.1