Made the data attribute of Event optional

This commit is contained in:
Paulus Schoutsen
2013-09-23 00:38:36 -07:00
parent 4f7e032bb4
commit 6fbadc24e4
2 changed files with 1 additions and 1 deletions

View File

@@ -1,7 +0,0 @@
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 '*'. """
return '*' in pattern or subject in pattern