From 0f1861990d9b7dfdfe3c5d2eefdd962b6db7a05c Mon Sep 17 00:00:00 2001 From: Mesalu Date: Wed, 25 Jul 2018 13:52:29 -0700 Subject: [PATCH] Update introspect.py Adds a check to determine if getfullargspec should be used. This is added in Py3 to get elements like type annotations. --- wx/py/introspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/py/introspect.py b/wx/py/introspect.py index 0c809672..80a89599 100644 --- a/wx/py/introspect.py +++ b/wx/py/introspect.py @@ -175,7 +175,7 @@ def getCallTip(command='', locals=None): pass elif inspect.isfunction(obj): # tip1 is a string like: "getCallTip(command='', locals=None)" - argspec = inspect.getargspec(obj) + argspec = inspect.getargspec(obj) if not PY3 else inspect.getfullargspec(obj) argspec = inspect.formatargspec(*argspec) if dropSelf: # The first parameter to a method is a reference to an