From db6654660698c975de0e4770c2e5293b82aba832 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 20 Jan 2022 23:49:21 +0100 Subject: [PATCH] rename to not shadow builtin --- InvenTree/plugin/builtin/barcode/mixins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/plugin/builtin/barcode/mixins.py b/InvenTree/plugin/builtin/barcode/mixins.py index b86130f71e..693df4b662 100644 --- a/InvenTree/plugin/builtin/barcode/mixins.py +++ b/InvenTree/plugin/builtin/barcode/mixins.py @@ -25,8 +25,8 @@ def hash_barcode(barcode_data): barcode_data = ''.join(list(printable_chars)) - hash = hashlib.md5(str(barcode_data).encode()) - return str(hash.hexdigest()) + result_hash = hashlib.md5(str(barcode_data).encode()) + return str(result_hash.hexdigest()) class BarcodeMixin: