summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-08-19 18:22:14 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-08-19 18:22:14 (GMT)
commitee58fa484ed535ec6d7f2b93cb3ef2addeb337e1 (patch)
tree9398d06f962ab532ad8bc80407630069491c1871 /Modules
parentfd036451bf0e0ade8783e21df801abf7be96d020 (diff)
downloadcpython-ee58fa484ed535ec6d7f2b93cb3ef2addeb337e1.zip
cpython-ee58fa484ed535ec6d7f2b93cb3ef2addeb337e1.tar.gz
cpython-ee58fa484ed535ec6d7f2b93cb3ef2addeb337e1.tar.bz2
#3560: cleanup C memoryview API
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c
index a724f89..47c4a56 100644
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -264,7 +264,7 @@ scanstring_str(PyObject *pystr, Py_ssize_t end, char *encoding, int strict)
if (PyBuffer_FillInfo(&info, NULL, &buf[end], next - end, 1, 0) < 0) {
goto bail;
}
- strchunk = PyMemoryView_FromMemory(&info);
+ strchunk = PyMemoryView_FromBuffer(&info);
if (strchunk == NULL) {
goto bail;
}