From 04dc9fbcbce400265a916e8a60d358a26a22cb0b Mon Sep 17 00:00:00 2001 From: John Nduli Date: Tue, 24 Sep 2024 15:41:26 +0300 Subject: chore: pylint code fix --- gn3/db/wiki.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gn3/db') diff --git a/gn3/db/wiki.py b/gn3/db/wiki.py index 4721a69..0f46855 100644 --- a/gn3/db/wiki.py +++ b/gn3/db/wiki.py @@ -11,11 +11,11 @@ class MissingDBDataException(Exception): def _decode_dict(result: dict): new_result = {} - for k, v in result.items(): - if isinstance(v, bytes): - new_result[k] = v.decode() + for key, val in result.items(): + if isinstance(val, bytes): + new_result[key] = val.decode() else: - new_result[k] = v + new_result[key] = val return new_result -- cgit v1.2.3