summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-09-16 08:03:59 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-09-16 08:03:59 (GMT)
commitb3955fe0c41ab58831b80cf88ae3451c9e7de932 (patch)
tree9efb32ea4e0b6729b7c28fc74bc77f375742c165
parentc6ebbef6bd3d9b4ceba4c8f819d6008084ad406d (diff)
parent975fce37883899a55bbcdaa6300c5c6ffe9d3db2 (diff)
downloadcpython-b3955fe0c41ab58831b80cf88ae3451c9e7de932.zip
cpython-b3955fe0c41ab58831b80cf88ae3451c9e7de932.tar.gz
cpython-b3955fe0c41ab58831b80cf88ae3451c9e7de932.tar.bz2
Issue #19029: Change non-existing since 3.0 StringType to str.
-rw-r--r--Lib/tkinter/tix.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/tkinter/tix.py b/Lib/tkinter/tix.py
index 99f9fff..5eecd04 100644
--- a/Lib/tkinter/tix.py
+++ b/Lib/tkinter/tix.py
@@ -126,7 +126,7 @@ class tixCommand:
for x in self.tk.split(self.tk.call('tix', 'configure')):
cnf[x[0][1:]] = (x[0][1:],) + x[1:]
return cnf
- if isinstance(cnf, StringType):
+ if isinstance(cnf, str):
x = self.tk.split(self.tk.call('tix', 'configure', '-'+cnf))
return (x[0][1:],) + x[1:]
return self.tk.call(('tix', 'configure') + self._options(cnf))
@@ -388,9 +388,9 @@ class TixWidget(tkinter.Widget):
"""Set configuration options for all subwidgets (and self)."""
if option == '':
return
- elif not isinstance(option, StringType):
+ elif not isinstance(option, str):
option = repr(option)
- if not isinstance(value, StringType):
+ if not isinstance(value, str):
value = repr(value)
names = self._subwidget_names()
for name in names: