Skip to content

Commit

Permalink
Set parsing corrections #992
Browse files Browse the repository at this point in the history
  • Loading branch information
mshak2 authored and petersilva committed Mar 25, 2024
1 parent 7939d8b commit 8e10b01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sarracenia/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def __repr__(self) -> str:
set_options = [ 'logEvents', 'fileEvents' ]

set_choices = {
'logEvents' : sarracenia.flowcb.entry_points + [ 'reject' ],
'logEvents' : set(sarracenia.flowcb.entry_points + [ 'reject' ]),
'fileEvents' : set( [ 'create', 'delete', 'link', 'mkdir', 'modify', 'rmdir' ] )
}
# FIXME: doesn't work... wonder why?
Expand Down Expand Up @@ -1039,8 +1039,6 @@ def _parse_set_string( self, v:str, old_value: set ) -> set:
sv= old_value | sv
elif op == '-' :
sv= old_value - sv
else:
sv=set([v])
return sv

def add_option(self, option, kind='list', default_value=None, all_values=None ):
Expand Down

0 comments on commit 8e10b01

Please sign in to comment.