Reverting a previous change to ensure a parameter is a list
This commit is contained in:
1 parent
9351acb498
commit
4f7e032bb4
3 files changed
+10
-7
No files matched your search
@@ -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 '*'. """
|
||||
|
||||
Reference in new issue
Block a user