summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-19 20:02:04 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-19 20:02:04 (GMT)
commit65c78e18b593955c231006dcb5862b53d3a2f169 (patch)
tree7af4d33882c638dcde5b15943e905f499afe5e20 /Lib/tkinter
parent7a337c1c7982fbbd631213e57f41eb86321ea7c4 (diff)
downloadcpython-65c78e18b593955c231006dcb5862b53d3a2f169.zip
cpython-65c78e18b593955c231006dcb5862b53d3a2f169.tar.gz
cpython-65c78e18b593955c231006dcb5862b53d3a2f169.tar.bz2
Use dictionary's update() method in _cnfmerge().
Diffstat (limited to 'Lib/tkinter')
-rwxr-xr-xLib/tkinter/Tkinter.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py
index 9d5fa6f..2c47480 100755
--- a/Lib/tkinter/Tkinter.py
+++ b/Lib/tkinter/Tkinter.py
@@ -43,8 +43,12 @@ def _cnfmerge(cnfs):
else:
cnf = {}
for c in _flatten(cnfs):
- for k, v in c.items():
- cnf[k] = v
+ try:
+ cnf.update(c)
+ except (AttributeError, TypeError), msg:
+ print "_cnfmerge: fallback due to:", msg
+ for k, v in c.items():
+ cnf[k] = v
return cnf
class Event: