summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-02-03 13:12:02 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-02-03 13:12:02 (GMT)
commitfa44be1e890cef23d0cf987dfc985d5a9fd645de (patch)
tree5a795e53836eada414de50dcb12fb928da73691a /plugins/pychrysalide/common
parent097e2f0265ea9cacdfbc7ab1ac7f1b64054b570f (diff)
Raised exception in some Python constructors.
Diffstat (limited to 'plugins/pychrysalide/common')
-rw-r--r--plugins/pychrysalide/common/fnv1a.c2
-rw-r--r--plugins/pychrysalide/common/pathname.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/pychrysalide/common/fnv1a.c b/plugins/pychrysalide/common/fnv1a.c
index 5caad48..2add487 100644
--- a/plugins/pychrysalide/common/fnv1a.c
+++ b/plugins/pychrysalide/common/fnv1a.c
@@ -62,7 +62,7 @@ static PyObject *py_fnv1a_hash(PyObject *self, PyObject *args)
fnv64_t value; /* Empreinte calculée */
ret = PyArg_ParseTuple(args, "s", &str);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
value = fnv_64a_hash(str);
diff --git a/plugins/pychrysalide/common/pathname.c b/plugins/pychrysalide/common/pathname.c
index e07ebe5..cbe05ed 100644
--- a/plugins/pychrysalide/common/pathname.c
+++ b/plugins/pychrysalide/common/pathname.c
@@ -70,7 +70,7 @@ static PyObject *py_build_relative_filename(PyObject *self, PyObject *args)
char *relative; /* Chemin d'accès construit */
ret = PyArg_ParseTuple(args, "ss", &ref, &target);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
relative = build_relative_filename(ref, target);
@@ -105,7 +105,7 @@ static PyObject *py_build_absolute_filename(PyObject *self, PyObject *args)
char *relative; /* Chemin d'accès construit */
ret = PyArg_ParseTuple(args, "ss", &ref, &target);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
relative = build_absolute_filename(ref, target);