From: Shantanu Date: Thu, 16 Apr 2020 10:10:12 +0000 (-0700) Subject: Fix typo in exception thrown by ast.unparse (GH-19534) X-Git-Tag: v3.9.0a6~97 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01508dcde47af993288134ab85d09ad03b43113c;p=thirdparty%2FPython%2Fcpython.git Fix typo in exception thrown by ast.unparse (GH-19534) --- diff --git a/Lib/ast.py b/Lib/ast.py index f51c71fb8c60..401af5647a24 100644 --- a/Lib/ast.py +++ b/Lib/ast.py @@ -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)