Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ae034ab

Browse filesBrowse 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
Copy full SHA for ae034ab

File tree

Expand file treeCollapse file tree

1 file changed

+1
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-6
lines changed

‎sentry_sdk/consts.py

Copy file name to clipboardExpand all lines: sentry_sdk/consts.py
+1-6Lines changed: 1 addition & 6 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.