Move declarations to block start.

This commit is contained in:
Georg Brandl 2008-03-25 11:59:51 +00:00
parent 799b372f31
commit f8f1fbd53c
1 changed files with 4 additions and 4 deletions

View 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;