summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/font.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-06-01 08:21:55 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-06-01 08:21:55 (GMT)
commit8381f90ee0564745c5b0f59b4ca7e6cef2a54565 (patch)
tree75b35b277f1750cd81e783fb0a89ae2b2bd1c517 /Lib/tkinter/font.py
parent078b8a81b13914b983760745ce0dac31f1c05145 (diff)
downloadcpython-8381f90ee0564745c5b0f59b4ca7e6cef2a54565.zip
cpython-8381f90ee0564745c5b0f59b4ca7e6cef2a54565.tar.gz
cpython-8381f90ee0564745c5b0f59b4ca7e6cef2a54565.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