]> granicus.if.org Git - python/commitdiff
Move declarations to block start.
authorGeorg Brandl <georg@python.org>
Tue, 25 Mar 2008 11:59:51 +0000 (11:59 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 25 Mar 2008 11:59:51 +0000 (11:59 +0000)
Objects/bufferobject.c

index fb7e1ef0131f9901da957cee7b4f4d8ad82326c1..f4c69a0222b8d744f8d0179f38768a39656ee84b 100644 (file)
@@ -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;