commit | 01508dcde47af993288134ab85d09ad03b43113c | [log] [tgz] |
---|---|---|
author | Shantanu <hauntsaninja@users.noreply.github.com> | Thu Apr 16 03:10:12 2020 -0700 |
committer | GitHub <noreply@github.com> | Thu Apr 16 11:10:12 2020 +0100 |
tree | 5c195cc28e5d53d07048f2bfd85eabcd75b6f116 | |
parent | e72cbcb346cfcc1ed7741ed6baf1929764e1ee74 [diff] |
Fix typo in exception thrown by ast.unparse (GH-19534)
diff --git a/Lib/ast.py b/Lib/ast.py index f51c71f..401af56 100644 --- a/Lib/ast.py +++ b/Lib/ast.py
@@ -1149,7 +1149,7 @@ 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)