mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
comment: Add Documentation string to deduplicate function
Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
parent
9d7abfaf7a
commit
5ff4170ff9
@ -48,6 +48,9 @@ def check_IPA_configuration():
|
|||||||
"(see man pages of ipa-server-install for help)", 6)
|
"(see man pages of ipa-server-install for help)", 6)
|
||||||
|
|
||||||
def deduplicate(lst):
|
def deduplicate(lst):
|
||||||
|
"""Remove duplicates and preserve order.
|
||||||
|
Returns copy of list with preserved order and removed duplicates.
|
||||||
|
"""
|
||||||
new_lst = []
|
new_lst = []
|
||||||
s = set(lst)
|
s = set(lst)
|
||||||
for i in lst:
|
for i in lst:
|
||||||
|
Loading…
Reference in New Issue
Block a user