diff options
author | Shantanu <hauntsaninja@users.noreply.github.com> | 2020-04-16 10:10:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 10:10:12 (GMT) |
commit | 01508dcde47af993288134ab85d09ad03b43113c (patch) | |
tree | 5c195cc28e5d53d07048f2bfd85eabcd75b6f116 | |
parent | e72cbcb346cfcc1ed7741ed6baf1929764e1ee74 (diff) | |
download | cpython-01508dcde47af993288134ab85d09ad03b43113c.zip cpython-01508dcde47af993288134ab85d09ad03b43113c.tar.gz cpython-01508dcde47af993288134ab85d09ad03b43113c.tar.bz2 |
Fix typo in exception thrown by ast.unparse (GH-19534)
-rw-r--r-- | Lib/ast.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |