summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/font.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-06-01 08:22:21 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-06-01 08:22:21 (GMT)
commit05ef4d3eadeda4a74c4448b67ccf9c5d94422fb9 (patch)
tree7873f5a670069faa08059733b5e18c2d2b67045e /Lib/tkinter/font.py
parent7be74cffbe96e9649a331260ba0fbf2c2b4a1de0 (diff)
parent8381f90ee0564745c5b0f59b4ca7e6cef2a54565 (diff)
downloadcpython-05ef4d3eadeda4a74c4448b67ccf9c5d94422fb9.zip
cpython-05ef4d3eadeda4a74c4448b67ccf9c5d94422fb9.tar.gz
cpython-05ef4d3eadeda4a74c4448b67ccf9c5d94422fb9.tar.bz2
Added missed calls of splitlist().
Diffstat (limited to 'Lib/tkinter/font.py')
-rw-r--r--Lib/tkinter/font.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/tkinter/font.py b/Lib/tkinter/font.py
index 4929241..2096093 100644
--- a/Lib/tkinter/font.py
+++ b/Lib/tkinter/font.py
@@ -81,7 +81,8 @@ class Font:
if exists:
self.delete_font = False
# confirm font exists
- if self.name not in root.tk.call("font", "names"):
+ if self.name not in root.tk.splitlist(
+ root.tk.call("font", "names")):
raise tkinter._tkinter.TclError(
"named font %s does not already exist" % (self.name,))
# if font config info supplied, apply it