Skip to content

Commit

Permalink
Debug prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Jan 28, 2020
1 parent ef5d232 commit 979d22d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detools/create.py
Expand Up @@ -121,11 +121,12 @@ def create_patch_normal_data(ffrom,
chunks = bsdiff.create_patch_mmap(suffix_array_mmap,
from_mmap,
to_mmap)
print('Chunks created with mmap.')
except Exception:
print('Failed to use mmap.')
from_data = file_read(ffrom)
suffix_array = sais.sais(from_data)
chunks = bsdiff.create_patch(suffix_array, from_data, file_read(fto))
print('Chunks created without mmap.')

# with open('data-to.patch', 'wb') as fout:
# for i in range(0, len(chunks), 5):
Expand Down

0 comments on commit 979d22d

Please sign in to comment.