Remove mutable objects from function args

This commit is contained in:
Ruud committed 2013-09-02 22:44:44 +02:00
1 parent 7fd14e0283
commit 779c7d2942
39 files changed
+147 -65

No files matched your search

+2 -1
View File
@@ -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')