mirror of https://github.com/python/cpython
Move declarations to block start.
This commit is contained in:
parent
799b372f31
commit
f8f1fbd53c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue