Added a default no-info value to BlockDevice()

This commit is contained in:
Anton Hvornum 2021-02-07 18:45:25 +01:00
parent 47649074b8
commit 9db589f10a
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ GPT = 0b00000001
#libc.mount.argtypes = (ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_ulong, ctypes.c_char_p)
class BlockDevice():
def __init__(self, path, info):
def __init__(self, path, info={}):
self.path = path
self.info = info
self.part_cache = OrderedDict()