From d5d430ea4207e5842730516895d139e95f9bb284 Mon Sep 17 00:00:00 2001 From: spo Date: Fri, 30 Oct 2015 15:23:30 +0300 Subject: [PATCH] Remove get_values() function from tools.py --- src/PythonAPI/model/tools.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/PythonAPI/model/tools.py b/src/PythonAPI/model/tools.py index 220fdee4f..fe300d990 100644 --- a/src/PythonAPI/model/tools.py +++ b/src/PythonAPI/model/tools.py @@ -19,20 +19,6 @@ def convert_to_underscore(name): return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower() -def get_value(attribute): - """Return simple type value from ModelAPI attribute if possible. - - ModelAPI_AttributeDouble -> double - ModelAPI_AttributeString -> str - """ - if (isinstance(attribute, ModelAPI.ModelAPI_AttributeDouble) or - isinstance(attribute, ModelAPI.ModelAPI_AttributeString)): - return attribute.value() - - print type(attribute) - return attribute - - class Selection: """Class for storing selection.""" -- 2.39.2