SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds)

This commit is contained in:
Raymond Hettinger 2003-07-09 18:48:24 +00:00
parent a4d2b869b9
commit 931237e2e6
10 changed files with 14 additions and 16 deletions

View file

@ -13,7 +13,7 @@ class OutputWindow(EditorWindow):
"""
def __init__(self, *args):
apply(EditorWindow.__init__, (self,) + args)
EditorWindow.__init__(self, *args)
self.text.bind("<<goto-file-line>>", self.goto_file_line)
# Customize EditorWindow
@ -136,7 +136,7 @@ class OnDemandOutputWindow:
text = owin.text
for tag, cnf in self.tagdefs.items():
if cnf:
apply(text.tag_configure, (tag,), cnf)
text.tag_configure(tag, **cnf)
text.tag_raise('sel')
self.write = self.owin.write