Project: datamanagement
Issue DM-3635: configDictField.py has code that relies on an undefined variable
While taking a linter pass on {{pex_config}} I found that {{ConfigDict.\_\_setitem\_\_}} in {{configDictField.py}} has some code that uses an undefined variable {{value}}. See the else clause in: {code} if oldValue is None: if x == dtype: self._dict[k] = dtype(__name=name, __at=at, __label=label) else: self._dict[k] = dtype(__name=name, __at=at, __label=label, **x._storage) if setHistory: self.history.append(("Added item at key %s"%k, at, label)) else: if value == dtype: value = dtype() oldValue.update(__at=at, __label=label, **value._storage) if setHistory: self.history.append(("Modified item at key %s"%k, at, label)) {code}
Story points: 2