We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ce6bd commit 37afad9Copy full SHA for 37afad9
sentry_sdk/consts.py
@@ -58,7 +58,12 @@ def _get_default_options():
58
# type: () -> Dict[str, Any]
59
import inspect
60
61
- a = inspect.getargspec(ClientConstructor.__init__)
+ if hasattr(inspect, "getfullargspec"):
62
+ getargspec = inspect.getfullargspec # type: ignore
63
+ else:
64
+ getargspec = inspect.getargspec # type: ignore
65
+
66
+ a = getargspec(ClientConstructor.__init__)
67
return dict(zip(a.args[-len(a.defaults) :], a.defaults))
68
69
0 commit comments