summaryrefslogtreecommitdiffstats
path: root/partition.c
Commit message (Collapse)AuthorAgeFilesLines
* partition: return None if partno is unsetJose M. Guisado2022-12-151-2/+1
| | | | | | | Undefined values in libfdisk should map to None type in Python. Py_BuildValue("%d", -1); is also incorrectly formatted and raises an error when executed.
* Use c99 struct initializationJose M. Guisado Gomez2022-04-281-37/+12
| | | | Declutters PyTypeObject struct initialization when declaring new types.
* Add COPYING and license headersJose M. Guisado Gomez2022-04-071-0/+12
| | | | LGPL2.1 or later.
* Initial commitJose M. Guisado Gomez2022-04-061-0/+150
Add sources, setup.py and .gitignore Build/Install: python setup.py build python setup.py install