mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
Fix typo in exception thrown by ast.unparse (GH-19534)
This commit is contained in:
parent
e72cbcb346
commit
01508dcde4
1 changed files with 1 additions and 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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue