Fix typo in exception thrown by ast.unparse (GH-19534)

This commit is contained in:
Shantanu 2020-04-16 03:10:12 -07:00 committed by GitHub
parent e72cbcb346
commit 01508dcde4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)