forked from qt-creator/qt-creator
Debugger: Port away from deprecated getargspec
https://docs.python.org/3/whatsnew/3.11.html suggests using getfullargspec instead. Fixes: QTCREATORBUG-28505 Change-Id: I27199f7e2c3a070c675dce3a152d201e22a16380 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -2495,6 +2495,9 @@ class DumperBase():
|
||||
try:
|
||||
if funcname.startswith('qdump__'):
|
||||
typename = funcname[7:]
|
||||
if sys.version_info > (3,):
|
||||
spec = inspect.getfullargspec(function)
|
||||
else:
|
||||
spec = inspect.getargspec(function)
|
||||
if len(spec.args) == 2:
|
||||
self.qqDumpers[typename] = function
|
||||
|
||||
Reference in New Issue
Block a user