diff options
author | wyz23x2 <52805709+wyz23x2@users.noreply.github.com> | 2021-09-17 23:10:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 23:10:17 (GMT) |
commit | f4813388b4506b2fafb0089848c5b11cd503758c (patch) | |
tree | dfee822e97444243369a91614497389ba6303931 /Objects/abstract.c | |
parent | 24dbe30f8df80740704db3743d071b3218d1276e (diff) | |
download | cpython-f4813388b4506b2fafb0089848c5b11cd503758c.zip cpython-f4813388b4506b2fafb0089848c5b11cd503758c.tar.gz cpython-f4813388b4506b2fafb0089848c5b11cd503758c.tar.bz2 |
bpo-44640: Improve punctuation consistency in isinstance/issubclass error messages (GH-27144)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 33eb857..c056c66 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -2608,7 +2608,7 @@ object_isinstance(PyObject *inst, PyObject *cls) } else { if (!check_class(cls, - "isinstance() arg 2 must be a type, a tuple of types or a union")) + "isinstance() arg 2 must be a type, a tuple of types, or a union")) return -1; retval = _PyObject_LookupAttrId(inst, &PyId___class__, &icls); if (icls != NULL) { @@ -2704,7 +2704,7 @@ recursive_issubclass(PyObject *derived, PyObject *cls) if (!_PyUnion_Check(cls) && !check_class(cls, "issubclass() arg 2 must be a class," - " a tuple of classes, or a union.")) { + " a tuple of classes, or a union")) { return -1; } |