Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0069bab

Browse files
committed
Reformat by replacing tabs with 4-spaces. Makes the code more PEP-7 compliant
and gets rid of some gross formatting on tab=4-space-configured editors.
1 parent 4f61a2d commit 0069bab

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Include/methodobject.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PyAPI_DATA(PyTypeObject) PyCFunction_Type;
1717

1818
typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
1919
typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *,
20-
PyObject *);
20+
PyObject *);
2121
typedef PyObject *(*PyNoArgsFunction)(PyObject *);
2222

2323
PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *);
@@ -33,22 +33,22 @@ PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
3333
(((PyCFunctionObject *)func) -> m_ml -> ml_flags & METH_STATIC ? \
3434
NULL : ((PyCFunctionObject *)func) -> m_self)
3535
#define PyCFunction_GET_FLAGS(func) \
36-
(((PyCFunctionObject *)func) -> m_ml -> ml_flags)
36+
(((PyCFunctionObject *)func) -> m_ml -> ml_flags)
3737
#endif
3838
PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
3939

4040
struct PyMethodDef {
41-
const char *ml_name; /* The name of the built-in function/method */
42-
PyCFunction ml_meth; /* The C function that implements it */
43-
int ml_flags; /* Combination of METH_xxx flags, which mostly
44-
describe the args expected by the C func */
45-
const char *ml_doc; /* The __doc__ attribute, or NULL */
41+
const char *ml_name; /* The name of the built-in function/method */
42+
PyCFunction ml_meth; /* The C function that implements it */
43+
int ml_flags; /* Combination of METH_xxx flags, which mostly
44+
describe the args expected by the C func */
45+
const char *ml_doc; /* The __doc__ attribute, or NULL */
4646
};
4747
typedef struct PyMethodDef PyMethodDef;
4848

4949
#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL)
5050
PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *,
51-
PyObject *);
51+
PyObject *);
5252

5353
/* Flag passed to newmethodobject */
5454
/* #define METH_OLDARGS 0x0000 -- unsupported now */

0 commit comments

Comments
 (0)