diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-03-10 03:52:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-10 03:52:44 -0700 |
commit | e4be2057d4bd06eb56fbfef4e4ed88fff7fb47cd (patch) | |
tree | 5daa344b215c6ef3f344057f66ace209d36e7c95 /Modules | |
parent | e5123d81ffb3be35a1b2767d6ced1a097aaf77be (diff) | |
download | cpython-git-e4be2057d4bd06eb56fbfef4e4ed88fff7fb47cd.tar.gz |
bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)
(cherry picked from commit 8b91edadc06dcb0d391a65d1ecdf07dcb429df1b)
Co-authored-by: sth <sth.dev@tejp.de>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index a97ce7790e..4d2bdcc209 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -2319,7 +2319,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); |