diff options
author | Helmut Grohne <helmut@subdivi.de> | 2021-12-29 15:55:28 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2021-12-29 15:55:28 +0100 |
commit | e3fa967ef54a0a7b107eebc1ceb83f66e770dc34 (patch) | |
tree | b7feba729a41b6f46a739b5c113105cb26f25962 | |
parent | 6b87bc371b91917980884d6dd20e39d3cda47fc7 (diff) | |
download | debian-dedup-e3fa967ef54a0a7b107eebc1ceb83f66e770dc34.tar.gz |
importpkg: fix suprression of boring content
The content must be bytes. Passing str silently skips the suppression.
-rwxr-xr-x | importpkg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/importpkg.py b/importpkg.py index 6772c4d..7bca70b 100755 --- a/importpkg.py +++ b/importpkg.py @@ -19,7 +19,7 @@ from dedup.hashing import DecompressedHash, SuppressingHash, HashedStream, \ from dedup.compression import GzipDecompressor from dedup.image import GIFHash, PNGHash -boring_content = set(("", "\n")) +boring_content = set((b"", b"\n")) def sha512_nontrivial(): return HashBlacklistContent(hashlib.sha512(), boring_content) |