plcopen/structures.py
changeset 2453 9900a8df922f
parent 2448 1367b796e129
child 2456 7373e3048167
equal deleted inserted replaced
2452:2f2b2152580f 2453:9900a8df922f
   264                         if store:
   264                         if store:
   265                             # create the copy of decl dict to be appended to section
   265                             # create the copy of decl dict to be appended to section
   266                             Function_decl_copy = Function_decl.copy()
   266                             Function_decl_copy = Function_decl.copy()
   267                             Current_section["list"].append(Function_decl_copy)
   267                             Current_section["list"].append(Function_decl_copy)
   268             else:
   268             else:
   269                 raise "First function must be in a category"
   269                 raise ValueError("First function must be in a category")
   270 
   270 
   271     return Standard_Functions_Decl
   271     return Standard_Functions_Decl
   272 
   272 
   273 
   273 
   274 StdBlckLst.extend(get_standard_funtions(csv_file_to_table(open(StdFuncsCSV))))
   274 StdBlckLst.extend(get_standard_funtions(csv_file_to_table(open(StdFuncsCSV))))