From c0e02f331c956394070f018bce8f3b510b578b17 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Fri, 27 Mar 2020 06:39:24 +0100 Subject: [PATCH] FEM: pep8 --- src/Mod/Fem/femguiobjects/FemSelectionWidgets.py | 9 +++++++-- src/Mod/Fem/femtools/geomtools.py | 4 ---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Mod/Fem/femguiobjects/FemSelectionWidgets.py b/src/Mod/Fem/femguiobjects/FemSelectionWidgets.py index 2f3ba9405c..36ba742108 100644 --- a/src/Mod/Fem/femguiobjects/FemSelectionWidgets.py +++ b/src/Mod/Fem/femguiobjects/FemSelectionWidgets.py @@ -486,7 +486,8 @@ class GeometryElementsSelection(QtGui.QWidget): else: # could be more than two solids, think of polar pattern FreeCAD.Console.PrintMessage( - " Edge belongs to at least two solids: Solid{}, Solid{}\n" + " Edge belongs to at least two solids: " + " Solid{}, Solid{}\n" .format(solid_to_add, str(i + 1)) ) solid_to_add = None @@ -542,7 +543,11 @@ class GeometryElementsSelection(QtGui.QWidget): .format(self.get_item_text(selection)) ) FreeCAD.Console.PrintMessage(message) - QtGui.QMessageBox.critical(None, "Geometry already in list", message.lstrip(" ")) + QtGui.QMessageBox.critical( + None, + "Geometry already in list", + message.lstrip(" ") + ) else: # selected shape will not added to the list FreeCADGui.Selection.clearSelection() diff --git a/src/Mod/Fem/femtools/geomtools.py b/src/Mod/Fem/femtools/geomtools.py index 568b6eb267..786d2e8329 100644 --- a/src/Mod/Fem/femtools/geomtools.py +++ b/src/Mod/Fem/femtools/geomtools.py @@ -27,8 +27,6 @@ __url__ = "http://www.freecadweb.org" import FreeCAD -from . import femutils - # ************************************************************************************************ def find_element_in_shape( @@ -248,5 +246,3 @@ def get_cylindrical_coords( B_coords = str(B[0]) + "," + str(B[1]) + "," + str(B[2]) coords = A_coords + "," + B_coords return coords - -