From a279b21a7021dd41e5a46b1691da039878269ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Thu, 4 May 2017 13:25:14 +0200 Subject: [PATCH] Solve mypy warning. --- stegano/lsb/lsb.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stegano/lsb/lsb.py b/stegano/lsb/lsb.py index fc4774e..2e5a3de 100755 --- a/stegano/lsb/lsb.py +++ b/stegano/lsb/lsb.py @@ -82,11 +82,9 @@ def hide(input_image_file: str, # Save the new pixel if img.mode == 'RGBA': - updated_pixel = (r, g, b, pixel[3]) + encoded.putpixel((col, row), (r, g, b, pixel[3])) else: - updated_pixel = (r, g, b) - - encoded.putpixel((col, row), updated_pixel) + encoded.putpixel((col, row), (r, g, b)) index += 3 else: