[Python-checkins] r57190 - python/branches/alex-py3k/Modules/_bytesiomodule.c
alexandre.vassalotti
python-checkins at python.org
Sun Aug 19 01:33:52 CEST 2007
Author: alexandre.vassalotti
Date: Sun Aug 19 01:32:37 2007
New Revision: 57190
Modified:
python/branches/alex-py3k/Modules/_bytesiomodule.c
Log:
Replace Py_BuildValue() by PyTuple_Pack(1, n) in read1() of BytesIO.
(Thanks Neal Norwitz).
--This line, and those below, will be ignored--
M _bytesiomodule.c
Modified: python/branches/alex-py3k/Modules/_bytesiomodule.c
==============================================================================
--- python/branches/alex-py3k/Modules/_bytesiomodule.c (original)
+++ python/branches/alex-py3k/Modules/_bytesiomodule.c Sun Aug 19 01:32:37 2007
@@ -185,7 +185,7 @@
{
PyObject *arg, *res;
- arg = Py_BuildValue("(O)", n);
+ arg = PyTuple_Pack(1, n);
if (arg == NULL)
return NULL;
res = bytesio_read(self, arg);
More information about the Python-checkins
mailing list