add a default value to data for the foreach function

This commit is contained in:
Vincent Hanquez 2005-04-26 23:53:11 +00:00
parent 92a4fea8a9
commit d5c3059a18
1 changed files with 1 additions and 1 deletions

View File

@ -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: