diff options
-rw-r--r-- | partition.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/partition.c b/partition.c index f1cc5e3..15dd28f 100644 --- a/partition.c +++ b/partition.c @@ -70,8 +70,7 @@ static PyObject *Partition_get_partno(PartitionObject *self) if (fdisk_partition_has_partno(self->pa)) { return PyLong_FromSize_t(fdisk_partition_get_partno(self->pa)); } - // Py_RETURN_NONE; - return Py_BuildValue("%d", -1); + Py_RETURN_NONE; } static PyObject *Partition_get_size(PartitionObject *self) { |