summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2020-10-08 11:23:25 -0400
committerPeter LaFosse <peter@vector35.com>2020-10-08 11:23:25 -0400
commit80a816ceab3aef0bde19fe84284e073bd66ee422 (patch)
treeb8c227f912120eb62d693f5e8a9e8c22213bf959 /python
parent4fe229294f7b5b123a6dae58e0e4ce675531f7b8 (diff)
Remove name setter for Variable object. Variable objects are always copies
Diffstat (limited to 'python')
-rw-r--r--python/function.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/python/function.py b/python/function.py
index e43ff855..5ab20c57 100644
--- a/python/function.py
+++ b/python/function.py
@@ -887,16 +887,7 @@ class Variable(object):
@name.setter
def name(self, value):
- if self._function is None:
- self._name = value
- elif value:
- self._function.create_user_var(self, self._type, value)
- self._name = value
- else:
- # Name will be reassigned by analysis on the next analysis update
- # This Variable object is will not be updated
- self._function.create_user_var(self, self._type, "")
- self._name = None
+ self._name = value
@property
def type(self):