summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2013-07-31 12:56:41 -0400
committerTony Asleson <tasleson@redhat.com>2013-11-19 14:40:25 -0600
commit1f744733a15fe56404dbd0c4d8e1aab339fef774 (patch)
tree62e04b3da80b8499cbffb3095bca82883e03e677
parentb0b061cdbc4856cf6f5b43bd9ae835e678440890 (diff)
downloadlvm2-1f744733a15fe56404dbd0c4d8e1aab339fef774.tar.gz
python-lvm: Correct names
The existing names do not follow accepted guidelines. Signed-off-by: Tony Asleson <tasleson@redhat.com>
-rw-r--r--python/liblvm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/python/liblvm.c b/python/liblvm.c
index a9de81749..42a327e17 100644
--- a/python/liblvm.c
+++ b/python/liblvm.c
@@ -1846,7 +1846,7 @@ static PyMethodDef _liblvm_pvseg_methods[] = {
static PyTypeObject _LibLVMvgType = {
PyObject_HEAD_INIT(&PyType_Type)
- .tp_name = "liblvm.Liblvm_vg",
+ .tp_name = "lvm.Liblvm_vg",
.tp_basicsize = sizeof(vgobject),
.tp_new = PyType_GenericNew,
.tp_dealloc = (destructor)liblvm_vg_dealloc,
@@ -1857,7 +1857,7 @@ static PyTypeObject _LibLVMvgType = {
static PyTypeObject _LibLVMlvType = {
PyObject_HEAD_INIT(&PyType_Type)
- .tp_name = "liblvm.Liblvm_lv",
+ .tp_name = "lvm.Liblvm_lv",
.tp_basicsize = sizeof(lvobject),
.tp_new = PyType_GenericNew,
.tp_dealloc = (destructor)liblvm_lv_dealloc,
@@ -1868,7 +1868,7 @@ static PyTypeObject _LibLVMlvType = {
static PyTypeObject _LibLVMpvlistType = {
PyObject_HEAD_INIT(&PyType_Type)
- .tp_name = "liblvm.Liblvm_pvlist",
+ .tp_name = "lvm.Liblvm_pvlist",
.tp_basicsize = sizeof(pvslistobject),
.tp_new = PyType_GenericNew,
.tp_dealloc = (destructor)_liblvm_pvlist_dealloc,
@@ -1879,7 +1879,7 @@ static PyTypeObject _LibLVMpvlistType = {
static PyTypeObject _LibLVMpvType = {
PyObject_HEAD_INIT(&PyType_Type)
- .tp_name = "liblvm.Liblvm_pv",
+ .tp_name = "lvm.Liblvm_pv",
.tp_basicsize = sizeof(pvobject),
.tp_new = PyType_GenericNew,
.tp_dealloc = (destructor)_liblvm_pv_dealloc,
@@ -1890,7 +1890,7 @@ static PyTypeObject _LibLVMpvType = {
static PyTypeObject _LibLVMlvsegType = {
PyObject_HEAD_INIT(&PyType_Type)
- .tp_name = "liblvm.Liblvm_lvseg",
+ .tp_name = "lvm.Liblvm_lvseg",
.tp_basicsize = sizeof(lvsegobject),
.tp_new = PyType_GenericNew,
.tp_dealloc = (destructor)_liblvm_lvseg_dealloc,
@@ -1901,7 +1901,7 @@ static PyTypeObject _LibLVMlvsegType = {
static PyTypeObject _LibLVMpvsegType = {
PyObject_HEAD_INIT(&PyType_Type)
- .tp_name = "liblvm.Liblvm_pvseg",
+ .tp_name = "lvm.Liblvm_pvseg",
.tp_basicsize = sizeof(pvsegobject),
.tp_new = PyType_GenericNew,
.tp_dealloc = (destructor)_liblvm_pvseg_dealloc,
@@ -1952,7 +1952,7 @@ PyMODINIT_FUNC initlvm(void)
LVM_THIN_DISCARDS_PASSDOWN) < 0)
return;
- if ((_LibLVMError = PyErr_NewException("Liblvm._LibLVMError", NULL, NULL))) {
+ if ((_LibLVMError = PyErr_NewException("lvm.LibLVMError", NULL, NULL))) {
/* Each call to PyModule_AddObject decrefs it; compensate: */
Py_INCREF(_LibLVMError);
Py_INCREF(_LibLVMError);