Mercurial > pymonkey
changeset 6:42f57789f84f
Simplified some code.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 28 Jun 2009 12:48:29 -0700 |
parents | aae78eac86d6 |
children | 0d0ce6415b66 |
files | pymonkey.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pymonkey.c Sun Jun 28 12:47:30 2009 -0700 +++ b/pymonkey.c Sun Jun 28 12:48:29 2009 -0700 @@ -26,10 +26,8 @@ if (value == JSVAL_TRUE) Py_RETURN_TRUE; - if (JSVAL_IS_NULL(value)) { - Py_INCREF(Py_None); - return Py_None; - } + if (JSVAL_IS_NULL(value)) + Py_RETURN_NONE; // TODO: Support more types. PyErr_SetString(PyExc_NotImplementedError,