summaryrefslogtreecommitdiff
path: root/Modules/_sre.c
diff options
context:
space:
mode:
authorsth <sth.dev@tejp.de>2019-03-10 11:29:14 +0100
committerSerhiy Storchaka <storchaka@gmail.com>2019-03-10 12:29:14 +0200
commit8b91edadc06dcb0d391a65d1ecdf07dcb429df1b (patch)
tree79f520e5bc745275befe1a2163e3306131db7527 /Modules/_sre.c
parentca7fe5063593958e5efdf90f068582837f07bd14 (diff)
downloadcpython-git-8b91edadc06dcb0d391a65d1ecdf07dcb429df1b.tar.gz
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 5cea7562f2..014cc546e3 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);