mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
avoid 'value' variable conflicts
This commit is contained in:
parent
64f511a43b
commit
4340989039
1 changed files with 4 additions and 4 deletions
|
|
@ -245,11 +245,11 @@ class AttributeValues:
|
|||
|
||||
def _update(self, value):
|
||||
changes = {}
|
||||
for key, value in dict(value).items():
|
||||
if key in self._data and self._data.get(key) == value:
|
||||
for key, key_value in dict(value).items():
|
||||
if key in self._data and self._data.get(key) == key_value:
|
||||
continue
|
||||
self._data[key] = value
|
||||
changes[key] = value
|
||||
self._data[key] = key_value
|
||||
changes[key] = key_value
|
||||
return changes
|
||||
|
||||
def _pop(self, key, default):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue