Mercurial > cpython-lru_cache-weakref
diff Modules/_json.c @ 48770:7511f3e672a2
#3560: cleanup C memoryview API
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Tue, 19 Aug 2008 18:22:14 +0000 |
| parents | cd3b0b7fd8e1 |
| children | 00e467db6182 |
line wrap: on
line diff
--- a/Modules/_json.c Tue Aug 19 17:56:33 2008 +0000 +++ b/Modules/_json.c Tue Aug 19 18:22:14 2008 +0000 @@ -264,7 +264,7 @@ 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; }
