Skip to content
Browse files

Use a set, lose dedupe function, since we no longer need to support Py23

Note: Once we stop supporting Py26, we can just make L623 a set comprehension.
  • Loading branch information...
1 parent c396d5a commit 6c1a832a75af708c38695b6968148a9feee0b6f0 @MichaelBlume MichaelBlume committed
Showing with 1 addition and 7 deletions.
  1. +1 −7 supervisor/options.py
View
8 supervisor/options.py
@@ -622,7 +622,7 @@ def process_groups_from_parser(self, parser):
result_handler, section))
pool_event_names = [x.upper() for x in
list_of_strings(get(section, 'events', ''))]
- pool_event_names = dedupe(pool_event_names)
+ pool_event_names = set(pool_event_names)
if not pool_event_names:
raise ValueError('[%s] section requires an "events" line' %
section)
@@ -1920,12 +1920,6 @@ def split_namespec(namespec):
group_name, process_name = namespec, namespec
return group_name, process_name
-def dedupe(L):
- D = {}
- for thing in L:
- D[thing] = 1
- return D.keys()
-
# exceptions
class ProcessException(Exception):

0 comments on commit 6c1a832

Please sign in to comment.
Something went wrong with that request. Please try again.