Go to file
Jose M. Guisado Gomez b905c1996f fdisk.c: add partition module object
Call Partition_AddModuleObject when initializing the python module.

Fixes bug when using the Partition class but the class has not
been added to the module via Py_TypeReady.

A common error was the type not being ready (missing attributes):

>>> for pa in cxt.parts:
...     print(pa.partno)
...
Traceback (most recent call last):
   File "<stdin>", line 2, in <module>
AttributeError: 'libfdisk.Partition' object has no attribute 'partno'
2022-04-26 17:08:49 +02:00
.gitignore Initial commit 2022-04-06 12:56:11 +02:00
COPYING Add COPYING and license headers 2022-04-07 17:03:34 +02:00
MANIFEST.in Add MANIFEST.in 2022-04-06 15:40:31 +02:00
context.c Add COPYING and license headers 2022-04-07 17:03:34 +02:00
fdisk.c fdisk.c: add partition module object 2022-04-26 17:08:49 +02:00
fdisk.h fdisk.c: add partition module object 2022-04-26 17:08:49 +02:00
label.c Add COPYING and license headers 2022-04-07 17:03:34 +02:00
partition.c Add COPYING and license headers 2022-04-07 17:03:34 +02:00
setup.py Initial commit 2022-04-06 12:56:11 +02:00