summaryrefslogtreecommitdiffstats
path: root/Objects
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 /Objects
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 'Objects')
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index babaa05..39c7c10 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -411,7 +411,7 @@ stdprinter_fileno(PyStdPrinter_Object *self, PyObject *Py_UNUSED(ignored))
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);
}