fixup! pylint: Ignore usage of 'unicode' before assignment

This commit is contained in:
Rafael Guterres Jeffman
2024-05-22 11:20:12 -03:00
parent 52241fe233
commit 77c1d206d3
8 changed files with 20 additions and 8 deletions

View File

@@ -293,7 +293,7 @@ def result_get_value_lowercase(res_find, key, default=None):
if existing is not None:
if isinstance(existing, (list, tuple)):
existing = [to_text(item).lower() for item in existing]
if isinstance(existing, (str, unicode)): # pylint: disable=E0606
if isinstance(existing, (str, unicode)): # pylint: disable=W0012,E0606
existing = existing.lower()
else:
existing = default