diff --git a/src/Mod/Fem/femtools/femutils.py b/src/Mod/Fem/femtools/femutils.py index 6ce496594e..1d3070d234 100644 --- a/src/Mod/Fem/femtools/femutils.py +++ b/src/Mod/Fem/femtools/femutils.py @@ -98,11 +98,8 @@ def type_of_obj(obj): def is_of_type(obj, ty): - '''returns if an object is of a given TypeId (C++ objects) or Proxy.Type (Python objects)''' - if type_of_obj(obj) == ty: - return True - else: - return False + '''returns True if an object is of a given TypeId (C++ objects) or Proxy.Type (Python Features)''' + return type_of_obj(obj) == ty def getBoundBoxOfAllDocumentShapes(doc):