Bug 3018: simplified logic in monitoredwidgets.py
svn: r12585
This commit is contained in:
parent
c3578b2ccf
commit
c2d9f55164
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user