mirror of
https://github.com/samba-team/samba.git
synced 2025-12-11 08:23:49 +03:00
level keys are inserted by conv routines.
This commit is contained in:
@@ -98,9 +98,6 @@ PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
|
||||
|
||||
py_from_DRIVER_INFO_1(&value, &ctr.info1[i]);
|
||||
|
||||
PyDict_SetItemString(
|
||||
value, "level", PyInt_FromLong(1));
|
||||
|
||||
PyDict_SetItemString(result, name, value);
|
||||
}
|
||||
|
||||
@@ -117,9 +114,6 @@ PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
|
||||
|
||||
py_from_DRIVER_INFO_2(&value, &ctr.info2[i]);
|
||||
|
||||
PyDict_SetItemString(
|
||||
value, "level", PyInt_FromLong(2));
|
||||
|
||||
PyDict_SetItemString(result, name, value);
|
||||
}
|
||||
|
||||
@@ -136,9 +130,6 @@ PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
|
||||
|
||||
py_from_DRIVER_INFO_3(&value, &ctr.info3[i]);
|
||||
|
||||
PyDict_SetItemString(
|
||||
value, "level", PyInt_FromLong(3));
|
||||
|
||||
PyDict_SetItemString(result, name, value);
|
||||
}
|
||||
|
||||
@@ -155,9 +146,6 @@ PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args,
|
||||
|
||||
py_from_DRIVER_INFO_6(&value, &ctr.info6[i]);
|
||||
|
||||
PyDict_SetItemString(
|
||||
value, "level", PyInt_FromLong(6));
|
||||
|
||||
PyList_SetItem(result, i, value);
|
||||
}
|
||||
|
||||
@@ -302,8 +290,6 @@ PyObject *spoolss_getprinterdriverdir(PyObject *self, PyObject *args,
|
||||
switch (level) {
|
||||
case 1:
|
||||
py_from_DRIVER_DIRECTORY_1(&result, ctr.info1);
|
||||
PyDict_SetItemString(
|
||||
result, "level", PyInt_FromLong(1));
|
||||
break;
|
||||
default:
|
||||
PyErr_SetString(spoolss_error, "unknown info level");
|
||||
|
||||
Reference in New Issue
Block a user