diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-04-06 10:58:59 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-04-06 10:58:59 -0400 |
| commit | 1f70e7091d198662ddebcd2398f0e0c1b2ecff24 (patch) | |
| tree | be81eb425a83167be852319e18b79071fd62cb80 /python/function.py | |
| parent | 43c5f9d3c2fecfcff12b48bfedee5d8de294b068 (diff) | |
Revert Variable.name setter as it breaks some usage of Variable objects
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/python/function.py b/python/function.py index ba5f5be7..5dfa9528 100644 --- a/python/function.py +++ b/python/function.py @@ -904,18 +904,6 @@ class Variable(object): @name.setter def name(self, value): - if value == None or value == "": - if self._source_type == VariableSourceType.StackVariableSourceType: - self._function.delete_user_stack_var(self) - else: - self._function.delete_user_var(self) - return - if value and value[0] not in string.ascii_lowercase + string.ascii_uppercase + "_?$@" and not ord(value[0]) & 0x80: - value = "_" + value - if self._source_type == VariableSourceType.StackVariableSourceType: - self._function.create_user_stack_var(self._storage, self._type, value) - else: - self._function.create_user_var(self, self._type, value) self._name = value @property |
