mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-28 10:24:47 +00:00
fixup! pylint: Ignore usage of 'unicode' before assignment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user