main
zjadzhd 2023-07-26 21:05:01 +08:00
parent a23714f42b
commit 9430eae988
2 changed files with 3 additions and 3 deletions

View File

@ -400,7 +400,7 @@ class Extractor(object):
if link_target and all(c in string.printable for c in link_target):
if cap == '' and con == '':
tmppath = self.DIR + entry_inode_path
if (tmppath).find(' ', 1, len(tmppath)) > 0:
if tmppath.find(' ', 1, len(tmppath)) > 0:
spaces_file = self.BASE_MYDIR + 'config' + os.sep + self.FileName + '_space.txt'
if not os.path.isfile(spaces_file):
f = open(spaces_file, 'tw', encoding='utf-8')
@ -436,7 +436,7 @@ class Extractor(object):
else:
if con == '':
tmppath = self.DIR + entry_inode_path
if (tmppath).find(' ', 1, len(tmppath)) > 0:
if tmppath.find(' ', 1, len(tmppath)) > 0:
spaces_file = self.BASE_MYDIR + 'config' + os.sep + self.FileName + '_space.txt'
if not os.path.isfile(spaces_file):
f = open(spaces_file, 'tw', encoding='utf-8')

View File

@ -101,7 +101,7 @@ class SparseImage(object):
elif chunk_type == 0xCAC3:
if data_sz != 0:
raise ValueError("Don't care chunk input size is non-zero (%u)" %
(data_sz))
data_sz)
else:
pos += chunk_sz