PEP fixes

This commit is contained in:
Phill Ridout 2014-08-26 18:38:07 +01:00
parent 34a1ab3b3e
commit 0b93faf7b9
1 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ class ActionList(object):
ActionList.shortcut_map[shortcuts[1]] = actions
else:
log.warning('Shortcut "%s" is removed from "%s" because another action already uses this shortcut.' %
(shortcuts[1], action.objectName()))
(shortcuts[1], action.objectName()))
shortcuts.remove(shortcuts[1])
# Check the primary shortcut.
existing_actions = ActionList.shortcut_map.get(shortcuts[0], [])
@ -291,7 +291,7 @@ class ActionList(object):
ActionList.shortcut_map[shortcuts[0]] = actions
else:
log.warning('Shortcut "%s" is removed from "%s" because another action already uses this shortcut.' %
(shortcuts[0], action.objectName()))
(shortcuts[0], action.objectName()))
shortcuts.remove(shortcuts[0])
action.setShortcuts([QtGui.QKeySequence(shortcut) for shortcut in shortcuts])