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",