Skip to content

Commit 195e64c

Browse files
committed
change exception message
1 parent 5a28d24 commit 195e64c

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

Modules/_testinternalcapi/test_cases.c.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,8 +1382,7 @@ dummy_func(
13821382
// gh-154902: user code can rebind __conditional_annotations__
13831383
if (!PySet_Check(set_o)) {
13841384
_PyErr_Format(tstate, PyExc_TypeError,
1385-
"__conditional_annotations__ must be a set, not %T",
1386-
set_o);
1385+
"'%T' object is not a set", set_o);
13871386
PyStackRef_CLOSE(v);
13881387
ERROR_IF(true);
13891388
}

Python/executor_cases.c.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)