eric6/DebugClients/Python/FlexCompleter.py

changeset 8230
8b5c6896655b
parent 8217
385f60c94548
--- a/eric6/DebugClients/Python/FlexCompleter.py	Mon Apr 12 19:25:18 2021 +0200
+++ b/eric6/DebugClients/Python/FlexCompleter.py	Mon Apr 12 19:54:29 2021 +0200
@@ -209,10 +209,7 @@
                     matches.append(match)
             if matches or not noprefix:
                 break
-            if noprefix == '_':
-                noprefix = '__'
-            else:
-                noprefix = None
+            noprefix = '__' if noprefix == '_' else None
         matches.sort()
         return matches
 

eric ide

mercurial