remove unnecessary brackets

This commit is contained in:
Christophe Benz 2010-12-08 16:41:08 +01:00 committed by Romain Bignon
commit 3dd50f363d
11 changed files with 13 additions and 12 deletions

View file

@ -52,7 +52,8 @@ class Value(object):
if self.regexp is not None and not re.match(self.regexp, unicode(v)):
raise ValueError('Value "%s" does not match regexp "%s"' % (v, self.regexp))
if self.choices is not None and not v in self.choices.iterkeys():
raise ValueError('Value "%s" is not in list: %s' % (v, ', '.join([unicode(s) for s in self.choices.iterkeys()])))
raise ValueError('Value "%s" is not in list: %s' % (
v, ', '.join(unicode(s) for s in self.choices.iterkeys())))
def set_value(self, v):
self.check_valid(v)