diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-04-25 13:43:51 -0400 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-04-25 13:43:51 -0400 |
commit | 588aff4847eaaec1b3192bf878dc515298b9fdcf (patch) | |
tree | 7cf57badc4ab372d0b7d18e50935f5b63b506d9f /numpy/f2py | |
parent | a8b1c0c6d10e1939d9001a52a962ecd6ef06500c (diff) | |
parent | 3cc68c97c8a3d3d22389b6b01020534a84b946cd (diff) | |
download | numpy-588aff4847eaaec1b3192bf878dc515298b9fdcf.tar.gz |
Merge pull request #5797 from jaimefrio/py_return_none
MANT: Use Py_RETURN_NONE whenever Py_None is returned
Diffstat (limited to 'numpy/f2py')
-rw-r--r-- | numpy/f2py/src/fortranobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/f2py/src/fortranobject.c b/numpy/f2py/src/fortranobject.c index 2e182922d..9024dd5b3 100644 --- a/numpy/f2py/src/fortranobject.c +++ b/numpy/f2py/src/fortranobject.c @@ -279,8 +279,7 @@ fortran_getattr(PyFortranObject *fp, char *name) { /* Py_INCREF(v); */ return v; } else { /* array is not allocated */ - Py_INCREF(Py_None); - return Py_None; + Py_RETURN_NONE; } } if (strcmp(name,"__dict__")==0) { |