void-packages/srcpkgs/freecad/patches/fe02d63c8c9b1280978be841d04...

33 lines
1.4 KiB
Diff

From fe02d63c8c9b1280978be841d04e68a0a55cceb9 Mon Sep 17 00:00:00 2001
From: Roy-043 <70520633+Roy-043@users.noreply.github.com>
Date: Thu, 29 Dec 2022 23:20:38 +0100
Subject: [PATCH] Draft: update inspect.getargspec to inspect.getfullargspec
(#8101)
---
src/Mod/Draft/draftguitools/gui_snapper.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Mod/Draft/draftguitools/gui_snapper.py b/src/Mod/Draft/draftguitools/gui_snapper.py
index de27eaa53482..ef9ba5284d3c 100644
--- a/src/Mod/Draft/draftguitools/gui_snapper.py
+++ b/src/Mod/Draft/draftguitools/gui_snapper.py
@@ -1438,7 +1438,7 @@ def accept():
Gui.Snapper.off()
self.ui.offUi()
if callback:
- if len(inspect.getargspec(callback).args) > 1:
+ if len(inspect.getfullargspec(callback).args) > 1:
obj = None
if self.snapInfo and ("Object" in self.snapInfo) and self.snapInfo["Object"]:
obj = App.ActiveDocument.getObject(self.snapInfo["Object"])
@@ -1457,7 +1457,7 @@ def cancel():
Gui.Snapper.off()
self.ui.offUi()
if callback:
- if len(inspect.getargspec(callback).args) > 1:
+ if len(inspect.getfullargspec(callback).args) > 1:
callback(None, None)
else:
callback(None)