Yielding actual partitions and not just the partition number :)

This commit is contained in:
Anton Hvornum 2021-02-07 15:05:57 +01:00
parent 2262cd6196
commit 9767095258
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class BlockDevice():
def __iter__(self):
for partition in self.partitions:
yield partition
yield self.partitions[partition]
def __getitem__(self, key, *args, **kwargs):
if key not in self.info: