Remove redundant split

This commit is contained in:
Terry Jan Reedy 2020-01-16 16:32:02 -05:00 committed by GitHub
parent af411224ea
commit 530e1d5e07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1394,7 +1394,7 @@ class Misc:
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)