Преглед изворни кода

parttool: make part_list an optional argument

Previous versions of PartitionType only required type and subtype as
arguments for the constructor. Make the new part_list argument optional to
keep backwards compatibilty
Marius Vikhammer пре 5 година
родитељ
комит
b3e7b58d04
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      components/partition_table/parttool.py

+ 1 - 1
components/partition_table/parttool.py

@@ -59,7 +59,7 @@ class PartitionName(_PartitionId):
 
 class PartitionType(_PartitionId):
 
-    def __init__(self, p_type, subtype, part_list):
+    def __init__(self, p_type, subtype, part_list=None):
         _PartitionId.__init__(self, p_type=p_type, subtype=subtype, part_list=part_list)