From 1f70e7091d198662ddebcd2398f0e0c1b2ecff24 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Tue, 6 Apr 2021 10:58:59 -0400 Subject: Revert Variable.name setter as it breaks some usage of Variable objects --- python/function.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'python') 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 -- cgit v1.3.1