From 25c99fad4d206bc4fb490831c5f99dc20bc0ec02 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sun, 30 Jun 2019 00:34:35 -0700 Subject: [PATCH] Fixed pylint warnings for PathGui family --- src/Mod/Path/PathScripts/PathGui.py | 5 +++-- src/Mod/Path/PathScripts/PathGuiInit.py | 5 ++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathGui.py b/src/Mod/Path/PathScripts/PathGui.py index a6911be5a6..cd00faac57 100644 --- a/src/Mod/Path/PathScripts/PathGui.py +++ b/src/Mod/Path/PathScripts/PathGui.py @@ -47,6 +47,7 @@ else: def _getProperty(obj, prop): o = obj attr = obj + name = None for name in prop.split('.'): o = attr if not hasattr(o, name): @@ -62,12 +63,12 @@ def _getProperty(obj, prop): def getProperty(obj, prop): '''getProperty(obj, prop) ... answer obj's property defined by its canonical name.''' - o, attr, name = _getProperty(obj, prop) + o, attr, name = _getProperty(obj, prop) # pylint: disable=unused-variable return attr def setProperty(obj, prop, value): '''setProperty(obj, prop, value) ... set the property value of obj's property defined by its canonical name.''' - o, attr, name = _getProperty(obj, prop) + o, attr, name = _getProperty(obj, prop) # pylint: disable=unused-variable if o and name: setattr(o, name, value) diff --git a/src/Mod/Path/PathScripts/PathGuiInit.py b/src/Mod/Path/PathScripts/PathGuiInit.py index 151eea982d..74a1e53bd7 100644 --- a/src/Mod/Path/PathScripts/PathGuiInit.py +++ b/src/Mod/Path/PathScripts/PathGuiInit.py @@ -21,8 +21,8 @@ # * USA * # * * # *************************************************************************** +# pylint: disable=unused-variable -import PathScripts import PathScripts.PathLog as PathLog LOGLEVEL = False @@ -36,7 +36,7 @@ else: Processed = False def Startup(): - global Processed + global Processed # pylint: disable=global-statement if not Processed: PathLog.debug('Initializing PathGui') from PathScripts import PathAdaptiveGui @@ -74,7 +74,6 @@ def Startup(): except ImportError: import FreeCAD FreeCAD.Console.PrintError("OpenCamLib is not working!\n") - pass from PathScripts import PathToolController from PathScripts import PathToolControllerGui from PathScripts import PathToolLibraryManager