summaryrefslogtreecommitdiff
path: root/source3/python
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
commit22b75d5c81b7e7ca99e11a304053dac618f7a14e (patch)
tree57cec1e863fc34e97768f24a7f30b7f403ae58f1 /source3/python
parent2ec89150f81b3643fa36c7e17ecaab223a97bfcb (diff)
downloadsamba-22b75d5c81b7e7ca99e11a304053dac618f7a14e.tar.gz
samba-22b75d5c81b7e7ca99e11a304053dac618f7a14e.tar.bz2
samba-22b75d5c81b7e7ca99e11a304053dac618f7a14e.zip
level keys are inserted by conv routines.
(This used to be commit b5068bb9fe28cfdd7a00dbc50196eb60e3a46af1)
Diffstat (limited to 'source3/python')
-rw-r--r--source3/python/py_spoolss_drivers.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/python/py_spoolss_drivers.c b/source3/python/py_spoolss_drivers.c
index b5357a78ad..2e8fac4a4e 100644
--- a/source3/python/py_spoolss_drivers.c
+++ b/source3/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");