summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose M. Guisado Gomez <guigom@riseup.net>2022-04-28 15:37:28 +0200
committerJose M. Guisado Gomez <guigom@riseup.net>2022-04-28 15:37:28 +0200
commitc5ae6a3967da2a2fbf18eff43a86d1157390a8be (patch)
tree6dd925426f4f6f50dc28b57c9aa82bc11e54a0b7
parentb905c1996fa2b894631949dffb60b03a9c7c3412 (diff)
context: rename parts to partitions
-rw-r--r--context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/context.c b/context.c
index 0630d3f..6841a4f 100644
--- a/context.c
+++ b/context.c
@@ -160,7 +160,7 @@ static PyObject *Context_get_nparts(ContextObject *self)
{
return PyLong_FromLong(fdisk_table_get_nents(self->tb));
}
-static PyObject *Context_get_parts(ContextObject *self)
+static PyObject *Context_get_partitions(ContextObject *self)
{
PyObject *p, *list = PyList_New(0); /* XXX: null if failed*/
struct fdisk_partition *pa;
@@ -188,7 +188,7 @@ static PyGetSetDef Context_getseters[] = {
{"devname", (getter)Context_get_devname, NULL, "context devname", NULL},
{"label", (getter)Context_get_label, NULL, "context label type", NULL},
{"nparts", (getter)Context_get_nparts, NULL, "context label number of existing partitions", NULL},
- {"parts", (getter)Context_get_parts, NULL, "context partitions", NULL},
+ {"partitions", (getter)Context_get_partitions, NULL, "context partitions", NULL},
{NULL}
};