freecad: fix for python 3.11
This commit is contained in:
parent
c5d2832ccc
commit
ec9ed98549
|
@ -0,0 +1,32 @@
|
||||||
|
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)
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'freecad'
|
# Template file for 'freecad'
|
||||||
pkgname=freecad
|
pkgname=freecad
|
||||||
version=0.20.2
|
version=0.20.2
|
||||||
revision=2
|
revision=3
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
|
||||||
_inst_prefix=/usr/lib/${pkgname}
|
_inst_prefix=/usr/lib/${pkgname}
|
||||||
|
|
Loading…
Reference in New Issue