diff options
author | Raymond Hettinger <python@rcn.com> | 2005-02-06 06:57:08 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-02-06 06:57:08 (GMT) |
commit | dbecd93b7203cd187c1978de1207c29d3a9a686c (patch) | |
tree | abb7331791de7b8e85208195e0c948a76cf77b67 /Lib/decimal.py | |
parent | 07ead1731850a9f1bd353b9330341309251099b6 (diff) | |
download | cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.zip cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.gz cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.bz2 |
Replace list of constants with tuples of constants.
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 05bdc99..90e2dcc 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: |