summaryrefslogtreecommitdiff
path: root/source/python/py_spoolss_drivers.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-09-06 06:59:40 +0000
committerTim Potter <tpot@samba.org>2002-09-06 06:59:40 +0000
commitb5068bb9fe28cfdd7a00dbc50196eb60e3a46af1 (patch)
treedb89608b0af4f9201bef54eee3afefe4b730466f /source/python/py_spoolss_drivers.c
parent2d227bdce26674affad87ad6d118e77604fb210a (diff)
downloadsamba-b5068bb9fe28cfdd7a00dbc50196eb60e3a46af1.tar.gz
level keys are inserted by conv routines.
Diffstat (limited to 'source/python/py_spoolss_drivers.c')
-rw-r--r--source/python/py_spoolss_drivers.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source/python/py_spoolss_drivers.c b/source/python/py_spoolss_drivers.c
index b5357a78ad3..2e8fac4a4e1 100644
--- a/source/python/py_spoolss_drivers.c
+++ b/source/python/py_spoolss_drivers.c
@@ -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");