From d5c3059a183b8f71dd2b1a6d4e60827060af5f13 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Tue, 26 Apr 2005 23:53:11 +0000 Subject: [PATCH] add a default value to data for the foreach function --- src/common/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/config.py b/src/common/config.py index 156651265..66f83f8d2 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -202,7 +202,7 @@ class Config: 'message_sent': [ True, 'sounds/sent.wav' ], } - def foreach(self, cb, data): + def foreach(self, cb, data = None): for opt in self.__options: cb(data, opt, None, self.__options[opt]) for opt in self.__options_per_key: