eric7/JediInterface/JediServer.py

branch
eric7
changeset 8920
fe16c3cf165d
parent 8881
54e42bc2437a
child 8943
23f9c7b9e18e
--- a/eric7/JediInterface/JediServer.py	Tue Jan 11 19:56:15 2022 +0100
+++ b/eric7/JediInterface/JediServer.py	Thu Jan 13 19:40:00 2022 +0100
@@ -211,9 +211,9 @@
         for completion in result["Completions"]:
             name = completion['Name']
             context = completion['FullName']
-            if context.endswith(".{0}".format(name)):
-                context = context.rsplit(".", 1)[0]
             if context:
+                if context.endswith(".{0}".format(name)):
+                    context = context.rsplit(".", 1)[0]
                 name = "{0} ({1})".format(name, context)
             
             name += JediServer.PictureIDs.get(completion['CompletionType'], '')

eric ide

mercurial