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()
|
map = get_val().get_map().copy()
|
||||||
if ignore_values :
|
if ignore_values :
|
||||||
for key in map.keys():
|
for key in map.keys():
|
||||||
try :
|
if key in ignore_values and key not in (None, default):
|
||||||
i = ignore_values.index(key)
|
|
||||||
except ValueError:
|
|
||||||
i = None
|
|
||||||
if (i is not None) and (not ignore_values[i] == default) :
|
|
||||||
del map[key]
|
del map[key]
|
||||||
|
|
||||||
self.sel = AutoComp.StandardCustomSelector(
|
self.sel = AutoComp.StandardCustomSelector(
|
||||||
|
Loading…
Reference in New Issue
Block a user