From 656a669cb0dc3d2d3becf20a5330531233b56834 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Mon, 26 Mar 2018 09:34:15 +0200 Subject: [PATCH] FEM: inout, make import inp mesh Python3 compatible --- src/Mod/Fem/feminout/importInpMesh.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/Fem/feminout/importInpMesh.py b/src/Mod/Fem/feminout/importInpMesh.py index 21bb2113a8..b12a964495 100644 --- a/src/Mod/Fem/feminout/importInpMesh.py +++ b/src/Mod/Fem/feminout/importInpMesh.py @@ -31,7 +31,6 @@ __date__ = "04/08/2016" import FreeCAD import os -import string ########## generic FreeCAD import and export methods ########## @@ -129,7 +128,7 @@ def read_inp(file_name): if (line[:5].upper() == "*NODE") and (model_definition is True): read_node = True elif read_node is True: - line_list = string.split(line, ',') + line_list = line.split(',') number = int(line_list[0]) x = float(line_list[1]) y = float(line_list[2]) @@ -184,7 +183,7 @@ def read_inp(file_name): error_seg3 = True # to print "not supported" elif elm_category != []: - line_list = string.split(line, ',') + line_list = line.split(',') if elm_2nd_line is False: number = int(line_list[0]) elm_category[number] = []