Bug 3018: simplified logic in monitoredwidgets.py

svn: r12585
This commit is contained in:
Gerald Britton 2009-05-28 16:14:38 +00:00
parent c3578b2ccf
commit c2d9f55164

View File

@ -350,11 +350,7 @@ class MonitoredDataType(object):
map = get_val().get_map().copy()
if ignore_values :
for key in map.keys():
try :
i = ignore_values.index(key)
except ValueError:
i = None
if (i is not None) and (not ignore_values[i] == default) :
if key in ignore_values and key not in (None, default):
del map[key]
self.sel = AutoComp.StandardCustomSelector(