summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/helpers.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-31 18:43:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-31 18:46:55 (GMT)
commit5efaafe278314051661c99c1e33a00d0883025a6 (patch)
treef4ee10bdb5605a82b80955fcfbf56a623ffc414d /plugins/pychrysalide/helpers.c
parent8f557031ec362c4b2e85724f6bc392086cefadea (diff)
Fixed mistakes relative to PyUnicode_Check() return value.
Diffstat (limited to 'plugins/pychrysalide/helpers.c')
-rw-r--r--plugins/pychrysalide/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pychrysalide/helpers.c b/plugins/pychrysalide/helpers.c
index a0aa5e7..f744475 100644
--- a/plugins/pychrysalide/helpers.c
+++ b/plugins/pychrysalide/helpers.c
@@ -239,7 +239,7 @@ PyObject *run_python_method(PyObject *module, const char *method, PyObject *args
PyErr_Fetch(&type, &value, &traceback);
if (type != NULL && type == PyExc_NotImplementedError \
- && value != NULL && PyUnicode_Check(value) == 1)
+ && value != NULL && PyUnicode_Check(value))
{
refmsg = PyUnicode_FromString(NOT_IMPLEMENTED_MSG);