diff options
| author | Travis E. Oliphant <oliphant@enthought.com> | 2007-09-23 02:00:13 +0000 |
|---|---|---|
| committer | Travis E. Oliphant <oliphant@enthought.com> | 2007-09-23 02:00:13 +0000 |
| commit | cd47fb0927808eb6b425f59cc29844905129913d (patch) | |
| tree | 0a3e07497e4059588351db8eb93e774ae65ba7f4 /Python/marshal.c | |
| parent | 1f5c6258541809802348be94cb2ef4131da44941 (diff) | |
| download | cpython-cd47fb0927808eb6b425f59cc29844905129913d.tar.gz | |
Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object.
Diffstat (limited to 'Python/marshal.c')
| -rw-r--r-- | Python/marshal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c index 1ec33bd817..c488f27ab4 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -367,7 +367,7 @@ w_object(PyObject *v, WFILE *p) /* Write unknown buffer-style objects as a string */ char *s; PyBufferProcs *pb = v->ob_type->tp_as_buffer; - PyBuffer view; + Py_buffer view; if ((*pb->bf_getbuffer)(v, &view, PyBUF_SIMPLE) != 0) { w_byte(TYPE_UNKNOWN, p); p->error = 1; |
