mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-01-19 21:32:47 +00:00
Create blank sector if no data passed into create_sector
This commit is contained in:
parent
eddfbf0dfd
commit
eee02b14cb
@ -89,7 +89,9 @@ class BaseHeader(object):
|
||||
def strict_check(self, image):
|
||||
pass
|
||||
|
||||
def create_sector(self, data):
|
||||
def create_sector(self, data=None):
|
||||
if data is None:
|
||||
data = np.zeros([self.sector_size], dtype=np.uint8)
|
||||
return self.sector_class(self.sector_size, data)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user