diff options
Diffstat (limited to 'Lib/tkinter/__init__.py')
| -rw-r--r-- | Lib/tkinter/__init__.py | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index eaf7af8..ffd4b4b 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -1336,8 +1336,9 @@ class Misc:          self.configure({key: value})      def keys(self):          """Return a list of all resource names of this widget.""" -        return [x[0][1:] for x in -                self.tk.splitlist(self.tk.call(self._w, 'configure'))] +        splitlist = self.tk.splitlist +        return [splitlist(x)[0][1:] for x in +                splitlist(self.tk.call(self._w, 'configure'))]      def __str__(self):          """Return the window path name of this widget."""          return self._w  | 
