diff --git a/src/Mod/Fem/femmesh/gmshtools.py b/src/Mod/Fem/femmesh/gmshtools.py index fad41d007a..77c70b817f 100644 --- a/src/Mod/Fem/femmesh/gmshtools.py +++ b/src/Mod/Fem/femmesh/gmshtools.py @@ -412,7 +412,7 @@ class GmshTools(): shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - text=True + universal_newlines=True ) except Exception as e: Console.PrintMessage(str(e) + "\n")