Replace list of constants with tuples of constants.

This commit is contained in:
Raymond Hettinger 2005-02-06 06:57:08 +00:00
parent 07ead17318
commit dbecd93b72
11 changed files with 29 additions and 29 deletions

View file

@ -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: