svn: r12757
This commit is contained in:
Gerald Britton 2009-07-03 00:29:52 +00:00
parent c919910cca
commit 873f830306

View File

@ -110,7 +110,7 @@ class EnumeratedListOption(Option):
@type value: The type will depend on the type of option.
@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)
else:
print "Value %s not found for option %s" % ( str(value),