From 831f13661aed688e3e8302032bfc7ab301dff472 Mon Sep 17 00:00:00 2001 From: "GMP-AD\\adieckmann" Date: Tue, 12 Dec 2023 12:01:19 +0100 Subject: [PATCH] fixed #392 --- nodes/2.x/List.ReplaceItemAtIndex+.dyf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/2.x/List.ReplaceItemAtIndex+.dyf b/nodes/2.x/List.ReplaceItemAtIndex+.dyf index f875a1be..5d2a8a38 100644 --- a/nodes/2.x/List.ReplaceItemAtIndex+.dyf +++ b/nodes/2.x/List.ReplaceItemAtIndex+.dyf @@ -18,7 +18,7 @@ { "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels", "NodeType": "PythonScriptNode", - "Code": "_list = IN[0]\r\nrValues = IN[1]\r\niValues = IN[2]\r\nif isinstance(iValues, list):\r\n\tif not isinstance(rValues, list): rValues = [rValues] * len(iValues)\r\n\tfor (index, value) in zip(iValues, rValues):\r\n\t\t_list[index] = value\r\nelse: _list[iValues] = rValues\r\nOUT = _list", + "Code": "_list = IN[0]\r\nrValues = IN[1]\r\niValues = IN[2]\r\nif iValues:\r\n\tif isinstance(iValues, list):\r\n\t\tif not isinstance(rValues, list): rValues = [rValues] * len(iValues)\r\n\t\tfor (index, value) in zip(iValues, rValues):\r\n\t\t\t_list[index] = value\r\n\telse: _list[iValues] = rValues\r\nOUT = _list", "Engine": "IronPython2", "VariableInputPorts": true, "Id": "c05d5d62b15545d09719af88c1b2148e",