1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

param: fix incorrect file error handling in s4 pyparam

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
Garming Sam
2014-01-27 12:55:34 +13:00
committed by Andrew Bartlett
parent fa5a1cc4dd
commit 931a370611

View File

@ -279,7 +279,6 @@ static PyObject *py_lp_dump(PyObject *self, PyObject *args)
f = PyFile_AsFile(py_stream);
if (f == NULL) {
PyErr_SetString(PyExc_TypeError, "Not a file stream");
return NULL;
}
@ -457,7 +456,6 @@ static PyObject *py_lp_service_dump(PyObject *self, PyObject *args)
f = PyFile_AsFile(py_stream);
if (f == NULL) {
PyErr_SetString(PyExc_TypeError, "Not a file stream");
return NULL;
}