commit | dbecd93b7203cd187c1978de1207c29d3a9a686c | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Feb 06 06:57:08 2005 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sun Feb 06 06:57:08 2005 +0000 |
tree | abb7331791de7b8e85208195e0c948a76cf77b67 | |
parent | 07ead1731850a9f1bd353b9330341309251099b6 [diff] [blame] |
Replace list of constants with tuples of constants.
diff --git a/Lib/decimal.py b/Lib/decimal.py index 05bdc99..90e2dcc 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py
@@ -515,7 +515,7 @@ 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: