[Python-checkins] Fix typo in exception thrown by ast.unparse (GH-19534)
Shantanu
webhook-mailer at python.org
Thu Apr 16 06:10:28 EDT 2020
https://github.com/python/cpython/commit/01508dcde47af993288134ab85d09ad03b43113c
commit: 01508dcde47af993288134ab85d09ad03b43113c
branch: master
author: Shantanu <hauntsaninja at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-04-16T11:10:12+01:00
summary:
Fix typo in exception thrown by ast.unparse (GH-19534)
files:
M Lib/ast.py
diff --git a/Lib/ast.py b/Lib/ast.py
index f51c71fb8c608..401af5647a240 100644
--- a/Lib/ast.py
+++ b/Lib/ast.py
@@ -1149,7 +1149,7 @@ def visit_IfExp(self, node):
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)
More information about the Python-checkins
mailing list