Tweak
svn: r12757
This commit is contained in:
parent
c919910cca
commit
873f830306
@ -110,7 +110,7 @@ class EnumeratedListOption(Option):
|
|||||||
@type value: The type will depend on the type of option.
|
@type value: The type will depend on the type of option.
|
||||||
@return: nothing
|
@return: nothing
|
||||||
"""
|
"""
|
||||||
if any(value == v for v, d in self.__items):
|
if value in (v for v, d in self.__items):
|
||||||
Option.set_value(self, value)
|
Option.set_value(self, value)
|
||||||
else:
|
else:
|
||||||
print "Value %s not found for option %s" % ( str(value),
|
print "Value %s not found for option %s" % ( str(value),
|
||||||
|
Loading…
Reference in New Issue
Block a user