Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b75b639 commit 687a1faCopy full SHA for 687a1fa
1 file changed
Modules/ossaudiodev.c
@@ -800,8 +800,8 @@ static PyMethodDef oss_methods[] = {
800
{ "flush", (PyCFunction)oss_sync, METH_VARARGS },
801
802
/* Support for the context manager protocol */
803
- { "__enter__", oss_self, METH_NOARGS },
804
- { "__exit__", oss_exit, METH_VARARGS },
+ { "__enter__", (PyCFunction)oss_self, METH_NOARGS },
+ { "__exit__", (PyCFunction)oss_exit, METH_VARARGS },
805
806
{ NULL, NULL} /* sentinel */
807
};
@@ -812,8 +812,8 @@ static PyMethodDef oss_mixer_methods[] = {
812
{ "fileno", (PyCFunction)oss_mixer_fileno, METH_NOARGS },
813
814
815
816
817
818
/* Simple ioctl wrappers */
819
{ "controls", (PyCFunction)oss_mixer_controls, METH_VARARGS },
0 commit comments