Skip to content

Commit

Permalink
stringinder better constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Feb 13, 2024
1 parent ef22a64 commit d36064b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cat_win/util/stringfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class StringFinder:
"""
defines a stringfinder
"""
def __init__(self, literals: set, regex: set) -> None:
self.kw_literals = literals
self.kw_regex = regex
def __init__(self, literals: set = None, regex: set = None) -> None:
self.kw_literals = literals if literals is not None else {}
self.kw_regex = regex if regex is not None else {}

def _findliterals(self, sub: str, _s: str):
"""
Expand Down

0 comments on commit d36064b

Please sign in to comment.