Go to file
Jose M. Guisado 7478453359 context: add label to repr function
Adds label information to context repr function.

%R is used to get the repr result of a PyObject, in this case this
object is the LabelObject representing the context's label information.

Helps showing more of the context information when printing out a
context object instance.

>>> import fdisk
>>> cxt = fdisk.Context('disk.bin')
>>> cxt
<libfdisk.Context object at 0x7fec52f39330, label=<libfdisk.Label object
at 0x7fec52f39310, name=gpt>, details=True, readonly=False>
2022-12-20 16:18:31 +01: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 context: add label to repr function 2022-12-20 16:18:31 +01:00
fdisk.c fdisk: remove unuseful comment 2022-12-15 17:46:47 +01:00
fdisk.h context: delete unused label field 2022-12-20 16:18:31 +01:00
label.c fdisk: declare kwlist array static 2022-12-15 17:51:17 +01:00
partition.c fdisk: declare kwlist array static 2022-12-15 17:51:17 +01:00
parttype.c coding style: line breaks 2022-12-15 17:37:07 +01:00
setup.py parttype: add parttype class and functions 2022-12-15 17:37:07 +01:00