From c830054583e3e11fc0b6b1d611c853a55588d1f3 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Tue, 18 Feb 2014 23:03:39 +0100
Subject: [PATCH] Don't need to check for boolean type

---
 xbob/io/videowriter.cpp | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/xbob/io/videowriter.cpp b/xbob/io/videowriter.cpp
index 860ed21..2f54791 100644
--- a/xbob/io/videowriter.cpp
+++ b/xbob/io/videowriter.cpp
@@ -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);
-- 
GitLab