From d2f9da6031cf28ce6a9f05250fb8b9d31d647831 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 7 Jun 2021 18:45:19 -0700 Subject: [PATCH] Remove printing only the string.printable characters. --- rejpg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rejpg.py b/rejpg.py index 4eb1330..9bbbb2d 100644 --- a/rejpg.py +++ b/rejpg.py @@ -25,7 +25,7 @@ def rejpg_argparse(args): bytes_saved = 0 remaining_size = 0 for filename in files: - print(''.join(c for c in filename if c in string.printable)) + print(filename) bytesio = io.BytesIO() image = PIL.Image.open(filename)