summaryrefslogtreecommitdiffstats
path: root/Modules/_sre.c
diff options
context:
space:
mode:
authorsth <sth.dev@tejp.de>2019-03-10 10:29:14 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-03-10 10:29:14 (GMT)
commit8b91edadc06dcb0d391a65d1ecdf07dcb429df1b (patch)
tree79f520e5bc745275befe1a2163e3306131db7527 /Modules/_sre.c
parentca7fe5063593958e5efdf90f068582837f07bd14 (diff)
downloadcpython-8b91edadc06dcb0d391a65d1ecdf07dcb429df1b.zip
cpython-8b91edadc06dcb0d391a65d1ecdf07dcb429df1b.tar.gz
cpython-8b91edadc06dcb0d391a65d1ecdf07dcb429df1b.tar.bz2
bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r--Modules/_sre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index 5cea756..014cc54 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -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);