diff options
author | Shantanu <hauntsaninja@users.noreply.github.com> | 2020-04-16 03:10:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 11:10:12 +0100 |
commit | 01508dcde47af993288134ab85d09ad03b43113c (patch) | |
tree | 5c195cc28e5d53d07048f2bfd85eabcd75b6f116 | |
parent | e72cbcb346cfcc1ed7741ed6baf1929764e1ee74 (diff) | |
download | cpython-git-01508dcde47af993288134ab85d09ad03b43113c.tar.gz |
Fix typo in exception thrown by ast.unparse (GH-19534)
-rw-r--r-- | Lib/ast.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ast.py b/Lib/ast.py index f51c71fb8c..401af5647a 100644 --- a/Lib/ast.py +++ b/Lib/ast.py @@ -1149,7 +1149,7 @@ class _Unparser(NodeVisitor): def visit_Set(self, node): if not node.elts: - raise ValueError("Set node should has at least one item") + raise ValueError("Set node should have at least one item") with self.delimit("{", "}"): self.interleave(lambda: self.write(", "), self.traverse, node.elts) |