Skip to content

Commit

Permalink
Fix to support Python 3.11 (Kodi 20)
Browse files Browse the repository at this point in the history
This is a fix for this error: cguZZman/plugin.googledrive#302
  • Loading branch information
RedSquirrel87 authored Dec 26, 2022
1 parent c68ae15 commit 7674b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clouddrive/common/ui/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def route(self):
self._rename_action()
method = getattr(self, self._action)
arguments = {}
for name in inspect.getargspec(method)[0]:
for name in inspect.getfullargspec(method)[0]:
if name in self._addon_params:
arguments[name] = self._addon_params[name]
method(**arguments)
Expand Down

1 comment on commit 7674b61

@janglapuk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be able to support backwards compatibility check, something like this:

if not hasattr(inspect, 'getargspec'):
    inspect.getargspec = inspect.getfullargspec

Please sign in to comment.