Showing the changes to python/ext (1 of 1 file). Show all
Unified · Split
| @@ -8,7 +8,6 @@ Py_aubio_window(PyObject *self, PyObject *args) · 7 unmodified lines | ||
| 8 | 8 | fvec_t *window = NULL; |
| 9 | 9 | |
| 10 | 10 | if (!PyArg_ParseTuple (args, "|sI", &wintype, &winlen)) { |
| 11 | − PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); | |
| 12 | 11 | return NULL; |
| 13 | 12 | } |
| 14 | 13 | |
| @@ -29,7 +28,6 @@ Py_aubio_level_lin(PyObject *self, PyObject *args) · 14 unmodified lines | ||
| 29 | 28 | PyObject *level_lin; |
| 30 | 29 | |
| 31 | 30 | if (!PyArg_ParseTuple (args, "O:level_lin", &input)) { |
| 32 | − PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); | |
| 33 | 31 | return NULL; |
| 34 | 32 | } |
| 35 | 33 | |
| @@ -58,7 +56,6 @@ Py_aubio_db_spl(PyObject *self, PyObject *args) · 22 unmodified lines | ||
| 58 | 56 | PyObject *db_spl; |
| 59 | 57 | |
| 60 | 58 | if (!PyArg_ParseTuple (args, "O:db_spl", &input)) { |
| 61 | − PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); | |
| 62 | 59 | return NULL; |
| 63 | 60 | } |
| 64 | 61 | |
| @@ -88,7 +85,6 @@ Py_aubio_silence_detection(PyObject *self, PyObject *args) · 23 unmodified lines | ||
| 88 | 85 | smpl_t threshold; |
| 89 | 86 | |
| 90 | 87 | if (!PyArg_ParseTuple (args, "O" AUBIO_NPY_SMPL_CHR ":silence_detection", &input, &threshold)) { |
| 91 | − PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); | |
| 92 | 88 | return NULL; |
| 93 | 89 | } |
| 94 | 90 | |
| @@ -118,7 +114,6 @@ Py_aubio_level_detection(PyObject *self, PyObject *args) · 23 unmodified lines | ||
| 118 | 114 | smpl_t threshold; |
| 119 | 115 | |
| 120 | 116 | if (!PyArg_ParseTuple (args, "O" AUBIO_NPY_SMPL_CHR ":level_detection", &input, &threshold)) { |
| 121 | − PyErr_SetString (PyExc_ValueError, "failed parsing arguments"); | |
| 122 | 117 | return NULL; |
| 123 | 118 | } |
| 124 | 119 | |