Mercurial > hg > vampy
diff PyPlugScanner.cpp @ 70:6c755f3e1173
More fixes
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 14:07:00 +0000 |
parents | 62dcaa5fe6f8 |
children | 0120dac53a69 |
line wrap: on
line diff
--- a/PyPlugScanner.cpp Mon Nov 17 12:53:51 2014 +0000 +++ b/PyPlugScanner.cpp Mon Nov 17 14:07:00 2014 +0000 @@ -153,7 +153,7 @@ //Import it as a module into the py interpreter PyObject *pyModule = PyImport_Import(pySource); PyObject* pyError = PyErr_Occurred(); - if (! pyError == 0) { + if (pyError) { cerr << "ERROR: error importing source: " << classname << endl; PyErr_Print(); Py_DECREF(pySource);