Added a default no-info value to BlockDevice()
This commit is contained in:
parent
47649074b8
commit
9db589f10a
|
|
@ -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)
|
#libc.mount.argtypes = (ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_ulong, ctypes.c_char_p)
|
||||||
|
|
||||||
class BlockDevice():
|
class BlockDevice():
|
||||||
def __init__(self, path, info):
|
def __init__(self, path, info={}):
|
||||||
self.path = path
|
self.path = path
|
||||||
self.info = info
|
self.info = info
|
||||||
self.part_cache = OrderedDict()
|
self.part_cache = OrderedDict()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue