From 01508dcde47af993288134ab85d09ad03b43113c Mon Sep 17 00:00:00 2001 From: Shantanu Date: Thu, 16 Apr 2020 03:10:12 -0700 Subject: Fix typo in exception thrown by ast.unparse (GH-19534) --- Lib/ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ast.py b/Lib/ast.py index f51c71f..401af56 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) -- cgit v0.12