RefactoringRope/CodeAssistClient.py

branch
eric7
changeset 409
65153bf17e8d
parent 389
4f53795beff0
child 411
8cccb49bba7b
--- a/RefactoringRope/CodeAssistClient.py	Tue Dec 20 14:31:55 2022 +0100
+++ b/RefactoringRope/CodeAssistClient.py	Tue Dec 20 14:33:49 2022 +0100
@@ -7,16 +7,17 @@
 Module implementing the code assist client interface to rope.
 """
 
+import contextlib
 import sys
-import contextlib
 
 modulePath = sys.argv[-1]  # it is always the last parameter
 sys.path.append(modulePath)
 
 try:
+    import rope.base.libutils
     import rope.base.project
-    import rope.base.libutils
     import rope.contrib.codeassist
+
     from rope.base.exceptions import BadIdentifierError, ModuleSyntaxError
 except ImportError:
     sys.exit(42)
@@ -363,7 +364,7 @@
         @return tuple containing the object type and name
         @rtype tuple of (str, str)
         """
-        from rope.base import pyobjects, pyobjectsdef, pynames
+        from rope.base import pynames, pyobjects, pyobjectsdef
         from rope.contrib import fixsyntax
 
         try:

eric ide

mercurial