Fix to comply to code style

This commit is contained in:
Michael Gerlach 2016-12-10 18:51:43 +01:00
parent 22d3d3e235
commit 02972e6b27
2 changed files with 4 additions and 4 deletions

View file

@ -67,8 +67,8 @@ class GPTPartitionMap(AbstractPartitionMap):
for partition in data:
if partition not in ["boot", "swap", "root", "type"] and not None:
part_tmp = GPTPartition(Sectors(data[partition]['size'], sector_size),
data[partition]['filesystem'], data[partition].get('format_command', None),
data[partition].get('mountopts', None), partition, last_partition())
data[partition]['filesystem'], data[partition].get('format_command', None),
data[partition].get('mountopts', None), partition, last_partition())
part_tmp.pad_start += partition_gap
part_tmp.size -= partition_gap
setattr(self, partition, part_tmp)

View file

@ -54,8 +54,8 @@ class MSDOSPartitionMap(AbstractPartitionMap):
self.partitions.append(self.root)
# Raise exception while trying to create additional partitions
# as its hard to calculate the actual size of the extended partition ATM
# And anyhow - we should go with GPT...
# as its hard to calculate the actual size of the extended partition ATM
# And anyhow - we should go with GPT...
for partition in data:
if partition not in ["boot", "swap", "root", "type"]:
raise PartitionError("If you want to have additional partitions please use GPT partition scheme")