diff options
author | Matus Valo <matusvalo@gmail.com> | 2017-09-10 12:04:38 -0700 |
---|---|---|
committer | Matus Valo <matusvalo@gmail.com> | 2017-09-10 12:04:38 -0700 |
commit | 76372513d65221e38472c33a412e39c9cd5e2703 (patch) | |
tree | fe17aa671ab786e7ec50dd67b006b097d76dc2eb | |
parent | c8c01a15f46fb6d5535fe95a156d03ce89f4b1f9 (diff) | |
download | librabbitmq-76372513d65221e38472c33a412e39c9cd5e2703.tar.gz |
Use %R instead of %s in PeErr_Format for object REPR
-rw-r--r-- | Modules/_librabbitmq/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_librabbitmq/connection.c b/Modules/_librabbitmq/connection.c index d4bcdac..34648f9 100644 --- a/Modules/_librabbitmq/connection.c +++ b/Modules/_librabbitmq/connection.c @@ -393,8 +393,8 @@ PyIter_ToAMQArray(amqp_connection_state_t conn, PyObject *src, amqp_pool_t *pool else { /* unsupported type */ PyErr_Format(PyExc_ValueError, - "Array member at index %lu, %s, is of an unsupported type", - pos, PyObject_REPR(item)); + "Array member at index %lu, %R, is of an unsupported type", + pos, item); goto item_error; } } |