Changed codebase's syntax before attempt the python3 migration later. #273

This commit is contained in:
2018-11-22 13:35:19 -06:00
parent 4391e3d3de
commit 221d1d413b
53 changed files with 264 additions and 190 deletions

View File

@@ -1 +1,2 @@
from keystrokeEditor import KeystrokeEditor
from __future__ import absolute_import
from .keystrokeEditor import KeystrokeEditor

View File

@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import widgetUtils
import config
import wx_ui
import constants
from . import wx_ui
from . import constants
from pubsub import pub
class KeystrokeEditor(object):

View File

@@ -32,7 +32,7 @@ class keystrokeEditorDialog(baseDialog.BaseWXDialog):
selection = self.keys.get_selected()
self.keys.clear()
for i in keystrokes:
if actions.has_key(i) == False:
if (i in actions) == False:
continue
action = actions[i]
self.actions.append(i)