summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShantanu <hauntsaninja@users.noreply.github.com>2020-04-16 10:10:12 (GMT)
committerGitHub <noreply@github.com>2020-04-16 10:10:12 (GMT)
commit01508dcde47af993288134ab85d09ad03b43113c (patch)
tree5c195cc28e5d53d07048f2bfd85eabcd75b6f116
parente72cbcb346cfcc1ed7741ed6baf1929764e1ee74 (diff)
downloadcpython-01508dcde47af993288134ab85d09ad03b43113c.zip
cpython-01508dcde47af993288134ab85d09ad03b43113c.tar.gz
cpython-01508dcde47af993288134ab85d09ad03b43113c.tar.bz2
Fix typo in exception thrown by ast.unparse (GH-19534)
-rw-r--r--Lib/ast.py2
1 files changed, 1 insertions, 1 deletions
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)