From f8f1fbd53c3a2b7fdda863f11242a976ec490e8f Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 25 Mar 2008 11:59:51 +0000 Subject: [PATCH] Move declarations to block start. --- Objects/bufferobject.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index fb7e1ef0131..f4c69a0222b 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c @@ -229,16 +229,16 @@ PyBuffer_New(Py_ssize_t size) static PyObject * buffer_new(PyTypeObject *type, PyObject *args, PyObject *kw) { + PyObject *ob; + Py_ssize_t offset = 0; + Py_ssize_t size = Py_END_OF_BUFFER; + if (Py_Py3kWarningFlag && PyErr_WarnEx(PyExc_DeprecationWarning, "buffer() not supported in 3.x; " "use memoryview()", 1) < 0) return NULL; - PyObject *ob; - Py_ssize_t offset = 0; - Py_ssize_t size = Py_END_OF_BUFFER; - if (!_PyArg_NoKeywords("buffer()", kw)) return NULL;