Kaydet (Commit) ea7364c7 authored tarafından Guido van Rossum's avatar Guido van Rossum

Peter Haight discovered that this code uses a mutable default for cnf

and then (under certain circumstances) can clobber the default!
He also submitted this patch as PR#82.
üst 3aca6531
......@@ -14,7 +14,9 @@ from Tkinter import *
from Tkinter import _cnfmerge
class ScrolledText(Text):
def __init__(self, master=None, cnf={}, **kw):
def __init__(self, master=None, cnf=None, **kw):
if cnf is None:
cnf = {}
if kw:
cnf = _cnfmerge((cnf, kw))
fcnf = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment