From 7db266f089b5645feb013f046d27954aef76a315 Mon Sep 17 00:00:00 2001 From: Milan Stute Date: Wed, 2 Dec 2020 15:23:16 +0100 Subject: [PATCH] Rename variable --- opendrop/util.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/opendrop/util.py b/opendrop/util.py index ee671b2..33ae021 100644 --- a/opendrop/util.py +++ b/opendrop/util.py @@ -112,15 +112,15 @@ class AirDropUtil: # Big image im.thumbnail((540, 540), Image.ANTIALIAS) - imgByteArr = io.BytesIO() - im.save(imgByteArr, format="JPEG2000") - file_icon = imgByteArr.getvalue() + img_bytes = io.BytesIO() + im.save(img_bytes, format="JPEG2000") + file_icon = img_bytes.getvalue() # Small image # im.thumbnail((64, 64), Image.ANTIALIAS) - # imgByteArr = io.BytesIO() - # im.save(imgByteArr, format='JPEG2000') - # small_file_icon = imgByteArr.getvalue() + # img_bytes = io.BytesIO() + # im.save(img_bytes, format='JPEG2000') + # small_file_icon = img_bytes.getvalue() return file_icon