RefactoringRope/CodeAssistServer.py

branch
server_client_variant
changeset 202
a111134b5dc7
parent 200
1584892147ef
child 203
c38750e1bafd
diff -r e677d82706d4 -r a111134b5dc7 RefactoringRope/CodeAssistServer.py
--- a/RefactoringRope/CodeAssistServer.py	Wed Sep 27 19:30:16 2017 +0200
+++ b/RefactoringRope/CodeAssistServer.py	Wed Sep 27 19:50:44 2017 +0200
@@ -10,16 +10,12 @@
 from __future__ import unicode_literals
 
 import os
-import sys
 
 from PyQt5.QtCore import pyqtSlot, QCoreApplication, QTimer
 
 from E5Gui.E5Application import e5App
 
-# TODO: eliminate this
-sys.path.insert(0, os.path.dirname(__file__))
-
-from JsonServer import JsonServer
+from .JsonServer import JsonServer
 
 import Globals
 import Preferences
@@ -135,7 +131,7 @@
         """
         Private method to process the completions sent by the client.
         
-        @param result dictionary containg the result sent by the client
+        @param result dictionary containing the result sent by the client
         @type dict
         """
         if "Error" in result:
@@ -188,7 +184,7 @@
         """
         Private method to process the calltips sent by the client.
         
-        @param result dictionary containg the result sent by the client
+        @param result dictionary containing the result sent by the client
         @type dict
         """
         if "Error" in result:
@@ -224,9 +220,6 @@
         """
         Public method to handle a method call from the client.
         
-        Note: This is an empty implementation that must be overridden in
-        derived classes.
-        
         @param method requested method name
         @type str
         @param params dictionary with method specific parameters
@@ -274,6 +267,9 @@
     def activate(self):
         """
         Public method to activate the code assist server.
+        
+        Note: This method provides for some growth potential.
+            Currently it is empty.
         """
         pass
     

eric ide

mercurial