Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Dec 3, 2024
1 parent 272ca67 commit 5ef8adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/pydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def source_synopsis(file):
tree = ast.parse(source)
if (tree.body and isinstance(tree.body[0], ast.Expr) and
isinstance(tree.body[0].value, ast.Constant) and
isinstance(tree.body[0].value.vlaue, str)):
isinstance(tree.body[0].value.value, str)):
docstring = tree.body[0].value.value
return docstring.strip().split('\n')[0].strip()
return None
Expand Down

0 comments on commit 5ef8adb

Please sign in to comment.