]> granicus.if.org Git - python/commit
"Fix" a few places that were using PyObject_AsCharBuffer() to convert a string
authorGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 03:34:29 +0000 (03:34 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 03:34:29 +0000 (03:34 +0000)
commitfa9a121952db01168e8d131549680d8bb8e9ddb7
treed5b34d56a98e011f5ad8593ba404882c3d2c62e1
parent625cbf28eeeed3f2d8afffa6c442f10d58ae6607
"Fix" a few places that were using PyObject_AsCharBuffer() to convert a string
(PyUnicode these days) to a char* + length.  The fix consists of calling
PyUnicode_AsString() and strlen().  This is not ideal, but AsCharBuffer()
is definitely not the API to use.
Modules/_sqlite/cursor.c
Modules/_sqlite/statement.c