(original) (raw)

diff -r ed590800fde7 Lib/tkinter/tix.py --- a/Lib/tkinter/tix.py Sun Sep 15 10:37:57 2013 +0200 +++ b/Lib/tkinter/tix.py Sun Sep 15 23:59:31 2013 +0300 @@ -126,7 +126,7 @@ 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 @@ """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: