Fix reference-after-use bug.
This commit is contained in:
parent
4b12bc589e
commit
fde31b69a8
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue