Remove mutable objects from function args
This commit is contained in:
1 parent
7fd14e0283
commit
779c7d2942
39 files changed
+147
-65
No files matched your search
@@ -11,7 +11,8 @@ log = CPLog(__name__)
|
||||
|
||||
class Email(Notification):
|
||||
|
||||
def notify(self, message = '', data = {}, listener = None):
|
||||
def notify(self, message = '', data = None, listener = None):
|
||||
if not data: data = {}
|
||||
|
||||
# Extract all the settings from settings
|
||||
from_address = self.conf('from')
|
||||
|
||||
Reference in new issue
Block a user