Reverting a previous change to ensure a parameter is a list
This commit is contained in:
parent
9351acb498
commit
4f7e032bb4
3 changed files with 10 additions and 7 deletions
|
@ -1,3 +1,6 @@
|
|||
def ensure_list(parameter):
|
||||
return parameter if isinstance(parameter, list) else [parameter]
|
||||
|
||||
def matcher(subject, pattern):
|
||||
""" Returns True if subject matches the pattern.
|
||||
Pattern is either a list of allowed subjects or a '*'. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue