Fix trailing whitespace, typos, headers

Fix trailing whitespace, typos, and header uniformity.
This commit is contained in:
luzpaz
2023-01-22 17:57:12 +00:00
committed by Uwe
parent d6cccf2f96
commit 729685316e
48 changed files with 180 additions and 189 deletions

View File

@@ -129,7 +129,7 @@ class TestUpdateAllGui(unittest.TestCase):
sleep(0.01)
self.limit_reached = True
worker = Worker()
self.factory.work_function = worker.run
self.factory.work_function = worker.run
self.test_object.run()
cancel_timer = QtCore.QTimer()
cancel_timer.timeout.connect(

View File

@@ -88,13 +88,13 @@ class AddonInstallerGUI(QtCore.QObject):
# Dependency check
deps = MissingDependencies(self.addon_to_install, self.addons)
# Python interpreter version check
stop_installation = self._check_python_version(deps)
if stop_installation:
self.finished.emit()
return
# Required Python
if hasattr(deps, "python_requires") and deps.python_requires:
# Disallowed packages:
@@ -107,7 +107,7 @@ class AddonInstallerGUI(QtCore.QObject):
# Remove any disallowed packages from the optional list
if hasattr(deps, "python_optional") and deps.python_optional:
self._clean_up_optional(deps)
# Missing FreeCAD workbenches
if hasattr(deps, "wbs") and deps.wbs:
stop_installation = self._report_missing_workbenches(deps.wbs)
@@ -529,7 +529,7 @@ class MacroInstallerGUI(QtCore.QObject):
"User parameter:BaseApp/Workbench/Global/Toolbar"
)
self.macro_dir = FreeCAD.getUserMacroDir(True)
def __del__(self):
if self.worker_thread and hasattr(self.worker_thread, "quit"):
self.worker_thread.quit()