comment: Add Documentation string to deduplicate function

Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
David Kupka 2015-08-27 07:34:02 +02:00 committed by Tomas Babej
parent 9d7abfaf7a
commit 5ff4170ff9

View File

@ -48,6 +48,9 @@ def check_IPA_configuration():
"(see man pages of ipa-server-install for help)", 6)
def deduplicate(lst):
"""Remove duplicates and preserve order.
Returns copy of list with preserved order and removed duplicates.
"""
new_lst = []
s = set(lst)
for i in lst: