summaryrefslogtreecommitdiffstats
path: root/libmount/python
diff options
context:
space:
mode:
authorKarel Zak2013-08-21 10:06:15 +0200
committerKarel Zak2013-08-21 10:06:15 +0200
commit6d5189376d92cf8855a4745f6c8429e83f7b11e0 (patch)
tree082b186794637aebeb8915c129ebed66594861a2 /libmount/python
parentpylibmount: cleanup cxt usage (diff)
downloadkernel-qcow2-util-linux-6d5189376d92cf8855a4745f6c8429e83f7b11e0.tar.gz
kernel-qcow2-util-linux-6d5189376d92cf8855a4745f6c8429e83f7b11e0.tar.xz
kernel-qcow2-util-linux-6d5189376d92cf8855a4745f6c8429e83f7b11e0.zip
pylibmount: remove Context_get_table()
It's too problematic and too low-level to support it Py binding. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/python')
-rw-r--r--libmount/python/context.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/libmount/python/context.c b/libmount/python/context.c
index 8d9680f5c..3e21e7200 100644
--- a/libmount/python/context.c
+++ b/libmount/python/context.c
@@ -867,34 +867,6 @@ static PyObject *Context_get_mtab(ContextObjext *self)
mnt_context_get_mtab(self->cxt, &tab);
return PyObjectResultTab(tab);
}
-#define Context_get_table_HELP "get_table(filename)\n\n\
-This function allocates a new table and parses the file. The parser error\n\
-callback and cache for tags and paths is set according to the cxt setting.\n\
-See also Tab.parse_file().\n\
-\n\
-It's strongly recommended to use Cxt.mtab and\n\
-Cxt.fstab for mtab and fstab files. These setters\n\
-do not care about LIBMOUNT_* env.variables and do not merge userspace\n\
-options.\n\
-\n\
-The getters return a new reference to the result.\n\
-\n\
-Returns self or raises an exception in case of an error."
-/* output differs from the C API */
-static PyObject *Context_get_table(ContextObjext *self, PyObject *args, PyObject *kwds)
-{
- char *filename;
- struct libmnt_table *tab = NULL;
- char *kwlist[] = { "filename", NULL };
-
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "s", kwlist, &filename)) {
- PyErr_SetString(PyExc_TypeError, ARG_ERR);
- return NULL;
- }
-
- mnt_context_get_table(self->cxt, filename, &tab);
- return PyObjectResultTab(tab);
-}
static PyObject *Context_get_optsmode(ContextObjext *self)
{
@@ -1151,7 +1123,6 @@ static PyGetSetDef Context_getseters[] = {
{NULL}
};
static PyMethodDef Context_methods[] = {
- {"get_table", (PyCFunction)Context_get_table, METH_VARARGS|METH_KEYWORDS, Context_get_table_HELP},
{"find_umount_fs", (PyCFunction)Context_find_umount_fs, METH_VARARGS|METH_KEYWORDS, Context_find_umount_fs_HELP},
{"reset_status", (PyCFunction)Context_reset_status, METH_NOARGS, Context_reset_status_HELP},
{"helper_executed", (PyCFunction)Context_helper_executed, METH_NOARGS, Context_helper_executed_HELP},