SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds)
diff --git a/Lib/idlelib/OutputWindow.py b/Lib/idlelib/OutputWindow.py
index 99e47e4..787e9b0 100644
--- a/Lib/idlelib/OutputWindow.py
+++ b/Lib/idlelib/OutputWindow.py
@@ -13,7 +13,7 @@
"""
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 @@
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