]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in exception thrown by ast.unparse (GH-19534)
authorShantanu <hauntsaninja@users.noreply.github.com>
Thu, 16 Apr 2020 10:10:12 +0000 (03:10 -0700)
committerGitHub <noreply@github.com>
Thu, 16 Apr 2020 10:10:12 +0000 (11:10 +0100)
Lib/ast.py

index f51c71fb8c608c059bd1bb368461ece51baa75f4..401af5647a240ceb9d0afad045f7e5c1921b79ee 100644 (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)