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 90c727c commit 1918f09
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,9 +97,10 @@ def PieFunction(name):

def functionInfo(name, func):
sig = inspect.signature(func)
argspec = '(%s)' % ', '.join(list(map(str, sig.parameters.values()))[1:])
return {
'name': name,
'function': name + str(sig),
'function': name + argspec,
'description': inspect.getdoc(func),
'module': inspect.getmodule(func).__name__,
'group': getattr(func, 'group', 'Ungrouped'),
Expand Down

0 comments on commit 1918f09

Please sign in to comment.