Skip to content

Commit 4c1268f

Browse files
johnzhou721zware
andauthored
Update Lib/idlelib/editor.py
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
1 parent a082fbf commit 4c1268f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/idlelib/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ def load_extension(self, name):
12021202
if keydefs:
12031203
self.apply_bindings(keydefs)
12041204
for vevent in keydefs:
1205-
methodname = vevent.lstrip("<").replace("-", "_").rstrip(">") + "_event"
1205+
methodname = vevent.strip("<>").replace("-", "_") + "_event"
12061206
if hasattr(ins, methodname):
12071207
self.text.bind(vevent, getattr(ins, methodname))
12081208

0 commit comments

Comments
 (0)