Skip to content

Commit

Permalink
use Constant.value
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Aug 27, 2024
1 parent 300d6c1 commit bb15cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asteval/astutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def __dir__(self):
def _getdoc(self):
doc = self.__doc__
if isinstance(doc, ast.Constant):
doc = doc.s
doc = doc.value
return doc

def __repr__(self):
Expand Down

0 comments on commit bb15cf0

Please sign in to comment.