History

python/ext/py-musicutils.c: do not overwrite PyArg_ParseTuple messages

Paul Brossier committed 10 years ago

Commit ff89a061 parent 7876b671 file · +0 −5Browse files

Showing the changes to python/ext (1 of 1 file). Show all

Unified · Split

python/ext/py-musicutils.c+0−5
@@ -8,7 +8,6 @@ Py_aubio_window(PyObject *self, PyObject *args) · 7 unmodified lines
88 fvec_t *window = NULL;
99
1010 if (!PyArg_ParseTuple (args, "|sI", &wintype, &winlen)) {
11− PyErr_SetString (PyExc_ValueError, "failed parsing arguments");
1211 return NULL;
1312 }
1413
@@ -29,7 +28,6 @@ Py_aubio_level_lin(PyObject *self, PyObject *args) · 14 unmodified lines
2928 PyObject *level_lin;
3029
3130 if (!PyArg_ParseTuple (args, "O:level_lin", &input)) {
32− PyErr_SetString (PyExc_ValueError, "failed parsing arguments");
3331 return NULL;
3432 }
3533
@@ -58,7 +56,6 @@ Py_aubio_db_spl(PyObject *self, PyObject *args) · 22 unmodified lines
5856 PyObject *db_spl;
5957
6058 if (!PyArg_ParseTuple (args, "O:db_spl", &input)) {
61− PyErr_SetString (PyExc_ValueError, "failed parsing arguments");
6259 return NULL;
6360 }
6461
@@ -88,7 +85,6 @@ Py_aubio_silence_detection(PyObject *self, PyObject *args) · 23 unmodified lines
8885 smpl_t threshold;
8986
9087 if (!PyArg_ParseTuple (args, "O" AUBIO_NPY_SMPL_CHR ":silence_detection", &input, &threshold)) {
91− PyErr_SetString (PyExc_ValueError, "failed parsing arguments");
9288 return NULL;
9389 }
9490
@@ -118,7 +114,6 @@ Py_aubio_level_detection(PyObject *self, PyObject *args) · 23 unmodified lines
118114 smpl_t threshold;
119115
120116 if (!PyArg_ParseTuple (args, "O" AUBIO_NPY_SMPL_CHR ":level_detection", &input, &threshold)) {
121− PyErr_SetString (PyExc_ValueError, "failed parsing arguments");
122117 return NULL;
123118 }
124119

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t