mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)
This commit is contained in:
parent
ca7fe50635
commit
8b91edadc0
3 changed files with 4 additions and 2 deletions
|
|
@ -2306,7 +2306,7 @@ match_repr(MatchObject *self)
|
|||
if (group0 == NULL)
|
||||
return NULL;
|
||||
result = PyUnicode_FromFormat(
|
||||
"<%s object; span=(%d, %d), match=%.50R>",
|
||||
"<%s object; span=(%zd, %zd), match=%.50R>",
|
||||
Py_TYPE(self)->tp_name,
|
||||
self->mark[0], self->mark[1], group0);
|
||||
Py_DECREF(group0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue