remove unnecessary brackets
This commit is contained in:
parent
f1a43f1101
commit
3dd50f363d
11 changed files with 13 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue