Skip to content

Commit

Permalink
fixup! getargspec is deprecated in python3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
niol committed Dec 17, 2023
1 parent 1918f09 commit 5b4dd78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/graphite/functions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def PieFunction(name):

def functionInfo(name, func):
sig = inspect.signature(func)
argspec = '(%s)' % ', '.join(list(map(str, sig.parameters.values()))[1:])
argspec = '({})'.format(', '.join(list(map(str,
sig.parameters.values()))[1:]))
return {
'name': name,
'function': name + argspec,
Expand Down

0 comments on commit 5b4dd78

Please sign in to comment.