From e3fa967ef54a0a7b107eebc1ceb83f66e770dc34 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 29 Dec 2021 15:55:28 +0100 Subject: importpkg: fix suprression of boring content The content must be bytes. Passing str silently skips the suppression. --- importpkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3