Fix reference-after-use bug.

This commit is contained in:
kenkeiras 2017-09-20 21:24:40 -04:00
parent 4b12bc589e
commit fde31b69a8

View File

@ -111,8 +111,8 @@ def modifiable_element_for_existance_in_set(container, set_name, element):
return (set_name in container) and (element in container[set_name])
def setter():
logging.debug(" add({} {} {})".format(container, set_name, element))
nonlocal container, set_name, element
logging.debug(" add({} {} {})".format(container, set_name, element))
return container[set_name].add(element)
return ModifiableProperty(