Skip to content

Commit

Permalink
Remplace la fonction inspect.getargspec() (zestedesavoir#6628)
Browse files Browse the repository at this point in the history
Elle n'est plus disponible avec Python 3.12 et fait échouer un test.
  • Loading branch information
philippemilink authored Jul 29, 2024
1 parent b7e0f4c commit 7f9a110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zds/utils/templatetags/append_query_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def inner(_, token):
except TypeError:
import inspect

args = inspect.getargspec(func).args[1:]
args = inspect.getfullargspec(func).args[1:]

err_msg = 'Bad arguments for tag "{0}".\nThe tag "{0}" take {1} arguments ({2}).\n {3} were provided ({4}).'
fstring = err_msg.format(split_arg[0], len(args), ", ".join(args), len(split_arg), ", ".join(split_arg))
Expand Down

0 comments on commit 7f9a110

Please sign in to comment.