bpo-36251: Fix format strings used in match_repr() and stdprinter_rep… · python/cpython@e4be205

Original file line numberDiff line numberDiff line change

@@ -2319,7 +2319,7 @@ match_repr(MatchObject *self)

23192319

if (group0 == NULL)

23202320

return NULL;

23212321

result = PyUnicode_FromFormat(

2322-

"<%s object; span=(%d, %d), match=%.50R>",

2322+

"<%s object; span=(%zd, %zd), match=%.50R>",

23232323

Py_TYPE(self)->tp_name,

23242324

self->mark[0], self->mark[1], group0);

23252325

Py_DECREF(group0);