Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove redundant split
  • Loading branch information
terryjreedy authored Jan 16, 2020
commit 530e1d5e079f8cf17f3199eac683a9d9d2ec29f4
2 changes: 1 addition & 1 deletion Lib/tkinter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ def unbind(self, sequence, funcid=None):
self.tk.call('bind', self._w, sequence, '')
else:
funcs = self.tk.call('bind', self._w, sequence, None).split('\n')
keep = '\n'.join(f for f in funcs.split('\n')
keep = '\n'.join(f for f in funcs
if not f.startswith(f'if {{"[{funcid}'))
self.tk.call('bind', self._w, sequence, keep)
self.deletecommand(funcid)
Expand Down