PluginRefactoringRope.py

changeset 320
91b171fdd85f
parent 319
1d71264692ef
child 324
8ee771493722
--- a/PluginRefactoringRope.py	Fri Oct 11 18:42:45 2019 +0200
+++ b/PluginRefactoringRope.py	Fri Oct 11 19:05:23 2019 +0200
@@ -28,10 +28,12 @@
 packageName = "RefactoringRope"
 internalPackages = "rope"
 shortDescription = "Refactoring using the Rope library."
-longDescription = """This plug-in implements refactoring functionality""" \
-    """ using the Rope refactoring library. Additionally it implements an""" \
-    """ alternative auto-completion and call-tips provider. It is a""" \
+longDescription = (
+    """This plug-in implements refactoring functionality"""
+    """ using the Rope refactoring library. Additionally it implements an"""
+    """ alternative auto-completion and call-tips provider. It is a"""
     """ provider for code documentation as well."""
+)
 pyqtApi = 2
 doNotCompile = True
 python2Compatible = True
@@ -50,8 +52,9 @@
     @return reference to the configuration page
     """
     global refactoringRopePluginObject
-    from RefactoringRope.ConfigurationPage.AutoCompletionRopePage \
-        import AutoCompletionRopePage
+    from RefactoringRope.ConfigurationPage.AutoCompletionRopePage import (
+        AutoCompletionRopePage
+    )
     page = AutoCompletionRopePage(refactoringRopePluginObject)
     return page
 
@@ -64,8 +67,9 @@
     @return reference to the configuration page
     """
     global refactoringRopePluginObject
-    from RefactoringRope.ConfigurationPage.CallTipsRopePage \
-        import CallTipsRopePage
+    from RefactoringRope.ConfigurationPage.CallTipsRopePage import (
+        CallTipsRopePage
+    )
     page = CallTipsRopePage(refactoringRopePluginObject)
     return page
 
@@ -78,9 +82,11 @@
     @return reference to the configuration page
     """
     global refactoringRopePluginObject
-    from RefactoringRope.ConfigurationPage.MouseClickHandlerRopePage \
-        import MouseClickHandlerRopePage
-    page = MouseClickHandlerRopePage(refactoringRopePluginObject)
+    from RefactoringRope.ConfigurationPage.MouseClickHandlerRopePage import (
+        MouseClickHandlerRopePage
+    )
+    page = MouseClickHandlerRopePage(
+        refactoringRopePluginObject)
     return page
 
 
@@ -233,9 +239,8 @@
         if self.__ui is not None:
             loc = self.__ui.getLocale()
             if loc and loc != "C":
-                locale_dir = \
-                    os.path.join(os.path.dirname(__file__),
-                                 "RefactoringRope", "i18n")
+                locale_dir = os.path.join(os.path.dirname(__file__),
+                                          "RefactoringRope", "i18n")
                 translation = "rope_{0}".format(loc)
                 translator = QTranslator(None)
                 loaded = translator.load(translation, locale_dir)

eric ide

mercurial