diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 07:13:40 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-20 07:13:40 (GMT) |
| commit | a98c4a984b34f887076f4171b1e3303e164cbddf (patch) | |
| tree | 78f6f0fbbc6728e24d5478aadb7bfe1d871b244f /Modules/_sqlite/cursor.c | |
| parent | f6f15918087f2fae652634303a79f9cc6bc421ce (diff) | |
| parent | 06515833fef7b8b5c7968edf72367d94ff7eb1e0 (diff) | |
| download | cpython-a98c4a984b34f887076f4171b1e3303e164cbddf.zip cpython-a98c4a984b34f887076f4171b1e3303e164cbddf.tar.gz cpython-a98c4a984b34f887076f4171b1e3303e164cbddf.tar.bz2 | |
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
Diffstat (limited to 'Modules/_sqlite/cursor.c')
| -rw-r--r-- | Modules/_sqlite/cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index c7169f6..39f7a65 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -465,7 +465,7 @@ PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* pysqlite_statement_reset(self->statement); } - operation_cstr = _PyUnicode_AsStringAndSize(operation, &operation_len); + operation_cstr = PyUnicode_AsUTF8AndSize(operation, &operation_len); if (operation_cstr == NULL) goto error; @@ -689,7 +689,7 @@ PyObject* pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args) self->reset = 0; if (PyUnicode_Check(script_obj)) { - script_cstr = _PyUnicode_AsString(script_obj); + script_cstr = PyUnicode_AsUTF8(script_obj); if (!script_cstr) { return NULL; } |
