Skip to content

Commit

Permalink
restore comprehension list
Browse files Browse the repository at this point in the history
  • Loading branch information
acutaia committed Jan 28, 2020
1 parent 75bd32b commit d8df797
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pelix/utilities.py
Expand Up @@ -348,7 +348,10 @@ def remove_duplicates(items):
return items

new_list = []
return [new_list.append(item) for item in items if item not in new_list]
for item in items:
if item not in new_list:
new_list.append(item)
return new_list


# ------------------------------------------------------------------------------
Expand Down

0 comments on commit d8df797

Please sign in to comment.