From 873f830306b5b200ca64dd98765187c6c551e453 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Fri, 3 Jul 2009 00:29:52 +0000 Subject: [PATCH] Tweak svn: r12757 --- src/gen/plug/menu/_enumeratedlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen/plug/menu/_enumeratedlist.py b/src/gen/plug/menu/_enumeratedlist.py index 9c9da2093..a2c4d1709 100644 --- a/src/gen/plug/menu/_enumeratedlist.py +++ b/src/gen/plug/menu/_enumeratedlist.py @@ -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),