From b3e7b58d04abb09659e7643c127bde2b33b73bf8 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Sat, 10 Oct 2020 09:46:51 +0800 Subject: [PATCH] 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 --- components/partition_table/parttool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/partition_table/parttool.py b/components/partition_table/parttool.py index fbbfc272c5..7644d06a58 100755 --- a/components/partition_table/parttool.py +++ b/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)