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

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