]> sourceware.org Git - lvm2.git/commitdiff
python-lvm: Correct names
authorTony Asleson <tasleson@redhat.com>
Wed, 31 Jul 2013 16:56:41 +0000 (12:56 -0400)
committerTony Asleson <tasleson@redhat.com>
Tue, 19 Nov 2013 20:40:25 +0000 (14:40 -0600)
The existing names do not follow accepted guidelines.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
python/liblvm.c

index a9de81749d0372f35a5d8335d3386a5d165e7d4a..42a327e17e7d7562dacaa32d4dd4208b9ad97b0d 100644 (file)
@@ -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);
This page took 0.11864 seconds and 5 git commands to generate.