remove an unused variable and shorten a line to appease pylint
This commit is contained in:
parent
62c0cef759
commit
22c2d64707
@ -78,7 +78,7 @@ class Keybindings:
|
|||||||
keyval, mask = self._parsebinding(binding)
|
keyval, mask = self._parsebinding(binding)
|
||||||
# Does much the same, but with poorer error handling.
|
# Does much the same, but with poorer error handling.
|
||||||
#keyval, mask = gtk.accelerator_parse(binding)
|
#keyval, mask = gtk.accelerator_parse(binding)
|
||||||
except KeymapError, ex:
|
except KeymapError:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
if mask & gtk.gdk.SHIFT_MASK:
|
if mask & gtk.gdk.SHIFT_MASK:
|
||||||
@ -121,7 +121,7 @@ class Keybindings:
|
|||||||
def lookup(self, event):
|
def lookup(self, event):
|
||||||
"""Translate a keyboard event into a mapped key"""
|
"""Translate a keyboard event into a mapped key"""
|
||||||
try:
|
try:
|
||||||
keyval, egroup, level, consumed = self.keymap.translate_keyboard_state(
|
keyval, _egp, _lvl, consumed = self.keymap.translate_keyboard_state(
|
||||||
event.hardware_keycode,
|
event.hardware_keycode,
|
||||||
event.state & ~gtk.gdk.LOCK_MASK,
|
event.state & ~gtk.gdk.LOCK_MASK,
|
||||||
event.group)
|
event.group)
|
||||||
|
Loading…
Reference in New Issue
Block a user