E4XML/ShortcutsHandler.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/E4XML/ShortcutsHandler.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/E4XML/ShortcutsHandler.py	Sat Jan 02 15:11:35 2010 +0000
@@ -7,8 +7,8 @@
 Module implementing the handler class for reading a keyboard shortcuts file.
 """
 
-from Config import shortcutsFileFormatVersion
-from XMLHandlerBase import XMLHandlerBase
+from .Config import shortcutsFileFormatVersion
+from .XMLHandlerBase import XMLHandlerBase
 
 class ShortcutsHandler(XMLHandlerBase):
     """
@@ -75,7 +75,7 @@
         Handler method for the "Shortcut" end tag.
         """
         if self.category:
-            if not self.shortcuts.has_key(self.category):
+            if self.category not in self.shortcuts:
                 self.shortcuts[self.category] = {}
             self.shortcuts[self.category][self.name] = (self.accel, self.altAccel)
         

eric ide

mercurial