Commit c57fd3ad authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed bindings not to use PyBobIOFilename_Converter, but the native s keyword...

Fixed bindings not to use PyBobIOFilename_Converter, but the native s keyword to convert str to char*
parent 110a938b
...@@ -41,13 +41,11 @@ BOB_TRY ...@@ -41,13 +41,11 @@ BOB_TRY
/* Parses input arguments in a single shot */ /* Parses input arguments in a single shot */
char** kwlist = s_reader.kwlist(); char** kwlist = s_reader.kwlist();
PyObject* filename = 0; char* filename = 0;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&", kwlist, &PyBobIo_FilenameConverter, &filename)) return -1; if (!PyArg_ParseTupleAndKeywords(args, kwds, "s", kwlist, &filename)) return -1;
const char* c_filename = PyString_AS_STRING(filename); self->v.reset(new bob::io::audio::Reader(filename));
self->v.reset(new bob::io::audio::Reader(c_filename));
return 0; ///< SUCCESS return 0; ///< SUCCESS
BOB_CATCH_MEMBER("constructor", -1) BOB_CATCH_MEMBER("constructor", -1)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment