Skip to content

Commit

Permalink
Don't use deprecated attribute of ast.Constant
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Jun 6, 2024
1 parent 631fc2c commit f3a06bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/build/doxygen_filter_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def get_deprecation_docstring(node):
if hasattr(node, 'decorator_list'):
for d in node.decorator_list:
if hasattr(d, 'func') and d.func.attr.startswith('deprecated_'):
return '\n@deprecated_at{%s} %s' % (d.args[0].s, d.args[1].s)
return '\n@deprecated_at{%s} %s' % (d.args[0].value,
d.args[1].value)
return ''


Expand Down

0 comments on commit f3a06bb

Please sign in to comment.