From 931237e2e66975c54e2ac6c5e503ee2992a22bcf Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 9 Jul 2003 18:48:24 +0000 Subject: SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds) --- Lib/idlelib/keybindingDialog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/idlelib/keybindingDialog.py') diff --git a/Lib/idlelib/keybindingDialog.py b/Lib/idlelib/keybindingDialog.py index df024e7dc9e..b550ec1b126 100644 --- a/Lib/idlelib/keybindingDialog.py +++ b/Lib/idlelib/keybindingDialog.py @@ -188,8 +188,7 @@ class GetKeysDialog(Toplevel): #make a tuple of most of the useful common 'final' keys keys=(self.alphanumKeys+self.punctuationKeys+self.functionKeys+ self.whitespaceKeys+self.editKeys+self.moveKeys) - apply(self.listKeysFinal.insert, - (END,)+keys) + self.listKeysFinal.insert(END, *keys) def TranslateKey(self,key): #translate from key list value to tkinter key-id -- cgit v1.2.3