diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-23 09:47:21 +0200 | 
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-23 09:47:21 +0200 | 
| commit | 228b12edcce49649d6befa3c03dbcefd5a22ae76 (patch) | |
| tree | 1066be6909fb981fcf30e1a8e224d43567bd9b92 /Modules/parsermodule.c | |
| parent | 60e6e962bac6a668d0df539ebf526a0a1c69eacd (diff) | |
| download | cpython-git-228b12edcce49649d6befa3c03dbcefd5a22ae76.tar.gz | |
Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever
possible.  Patch is writen with Coccinelle.
Diffstat (limited to 'Modules/parsermodule.c')
| -rw-r--r-- | Modules/parsermodule.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index b2566951d0..e5c4db3048 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -91,8 +91,7 @@ node2tuple(node *n,                     /* node to convert               */      PyObject *result = NULL, *w;      if (n == NULL) { -        Py_INCREF(Py_None); -        return Py_None; +        Py_RETURN_NONE;      }      if (ISNONTERMINAL(TYPE(n))) {  | 
