Skip to content

Commit

Permalink
Update unblob/processing.py
Browse files Browse the repository at this point in the history
Co-authored-by: Krisztián Fekete <1246751+e3krisztian@users.noreply.github.com>
  • Loading branch information
qkaiser and e3krisztian committed Jan 3, 2024
1 parent 5c5f861 commit faf2218
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions unblob/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,13 +452,7 @@ def _iterate_directory(self, extract_dirs, processed_paths):


def is_padding(file: File, chunk: UnknownChunk):
return not any(
current_byte != next_byte
for current_byte, next_byte in zip(
file[chunk.start_offset : chunk.end_offset],
file[chunk.start_offset + 1 : chunk.end_offset],
)
)
return len(set(file[chunk.start_offset : chunk.end_offset])) == 1


def process_patterns(
Expand Down

0 comments on commit faf2218

Please sign in to comment.