Skip to content
Snippets Groups Projects
Commit c8300545 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Don't need to check for boolean type

parent cdfb6f0e
No related branches found
No related tags found
No related merge requests found
......@@ -120,11 +120,6 @@ static int PyBobIoVideoWriter_Init(PyBobIoVideoWriterObject* self,
auto filename_ = make_safe(filename);
if (pycheck && PyObject_IsTrue(pycheck)) {
PyErr_SetString(PyExc_TypeError, "argument to `check' must be a boolean");
return -1;
}
std::string codec_str = codec?codec:"";
std::string format_str = format?format:"";
bool check = PyObject_IsTrue(pycheck);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment