PluginRefactoringRope.py

changeset 118
d242ba11a04c
parent 116
50cb62506ab2
child 119
a03f2be1997b
diff -r 7269e54fd316 -r d242ba11a04c PluginRefactoringRope.py
--- a/PluginRefactoringRope.py	Sat Mar 14 14:24:53 2015 +0100
+++ b/PluginRefactoringRope.py	Sun Mar 22 17:33:44 2015 +0100
@@ -81,16 +81,16 @@
     @return dictionary containing the relevant data
     """
     return {
-        "ropeAutoCompletionPage" : [
-            QCoreApplication.translate("RefactoringRopePlugin", "Rope"), 
-             os.path.join("RefactoringRope", "ConfigurationPage", 
-                          "preferences-refactoring.png"),
-             createAutoCompletionPage, "editorAutocompletionPage", None],
-        "ropeCallTipsPage" : \
-            [QCoreApplication.translate("RefactoringRopePlugin", "Rope"), 
-             os.path.join("RefactoringRope", "ConfigurationPage", 
-                          "preferences-refactoring.png"),
-             createCallTipsPage, "editorCalltipsPage", None],
+        "ropeAutoCompletionPage": [
+            QCoreApplication.translate("RefactoringRopePlugin", "Rope"),
+            os.path.join("RefactoringRope", "ConfigurationPage",
+                         "preferences-refactoring.png"),
+            createAutoCompletionPage, "editorAutocompletionPage", None],
+        "ropeCallTipsPage": [
+            QCoreApplication.translate("RefactoringRopePlugin", "Rope"),
+            os.path.join("RefactoringRope", "ConfigurationPage",
+                         "preferences-refactoring.png"),
+            createCallTipsPage, "editorCalltipsPage", None],
     }
 
 
@@ -118,13 +118,13 @@
         self.__initialize()
         
         self.__defaults = {
-            "CodeAssistEnabled" : False, 
-            "MaxFixes" : 10, 
-            "CodeAssistTimeout" : 100,
+            "CodeAssistEnabled": False,
+            "MaxFixes": 10,
+            "CodeAssistTimeout": 100,
             "ShowQScintillaCompletions": True,
             
-            "CodeAssistCalltipsEnabled" : False, 
-            "CalltipsMaxFixes" : 10, 
+            "CodeAssistCalltipsEnabled": False,
+            "CalltipsMaxFixes": 10,
         }
         
         self.__translator = None
@@ -296,10 +296,9 @@
         Public method to retrieve the various refactoring settings.
         
         @param key the key of the value to get
-        @param prefClass preferences class used as the storage area
         @return the requested refactoring setting
         """
-        if key in ["CodeAssistEnabled", "CodeAssistCalltipsEnabled", 
+        if key in ["CodeAssistEnabled", "CodeAssistCalltipsEnabled",
                    "ShowQScintillaCompletions"]:
             return Preferences.toBool(Preferences.Prefs.settings.value(
                 self.PreferencesKey + "/" + key, self.__defaults[key]))
@@ -313,7 +312,6 @@
         
         @param key the key of the setting to be set (string)
         @param value the value to be set
-        @param prefClass preferences class used as the storage area
         """
         Preferences.Prefs.settings.setValue(
             self.PreferencesKey + "/" + key, value)
@@ -484,7 +482,7 @@
         editor.unsetAutoCompletionHook()
         editor.userListActivated.disconnect(self.__completionListSelected)
     
-    def codeAssist(self, editor, context = False):
+    def codeAssist(self, editor, context=False):
         """
         Public method to determine the autocompletion proposals.
         

eric ide

mercurial