mirror of
https://github.com/python/cpython.git
synced 2026-04-23 12:21:01 +00:00
bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)
(cherry picked from commit 8b91edadc0)
Co-authored-by: sth <sth.dev@tejp.de>
This commit is contained in:
parent
e5123d81ff
commit
e4be2057d4
3 changed files with 4 additions and 2 deletions
|
|
@ -407,7 +407,7 @@ stdprinter_fileno(PyStdPrinter_Object *self)
|
|||
static PyObject *
|
||||
stdprinter_repr(PyStdPrinter_Object *self)
|
||||
{
|
||||
return PyUnicode_FromFormat("<stdprinter(fd=%d) object at 0x%x>",
|
||||
return PyUnicode_FromFormat("<stdprinter(fd=%d) object at %p>",
|
||||
self->fd, self);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue