Skip to content

Commit ae034ab

Browse files
ref(consts): Remove Python 2 compatibility code (#3284)
All the versions we now support include `inspect.getfullargspec`, so we no longer need the backwards-compatible fallback.
1 parent 8a95971 commit ae034ab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sentry_sdk/consts.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -546,12 +546,7 @@ def _get_default_options():
546546
# type: () -> dict[str, Any]
547547
import inspect
548548

549-
if hasattr(inspect, "getfullargspec"):
550-
getargspec = inspect.getfullargspec
551-
else:
552-
getargspec = inspect.getargspec # type: ignore
553-
554-
a = getargspec(ClientConstructor.__init__)
549+
a = inspect.getfullargspec(ClientConstructor.__init__)
555550
defaults = a.defaults or ()
556551
kwonlydefaults = a.kwonlydefaults or {}
557552

0 commit comments

Comments
 (0)