--- a/eric6/DebugClients/Python/FlexCompleter.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/DebugClients/Python/FlexCompleter.py Sat May 01 14:27:20 2021 +0200 @@ -54,7 +54,7 @@ __all__ = ["Completer"] -class Completer(object): +class Completer: """ Class implementing the command line completer object. """ @@ -122,7 +122,7 @@ @return ammended word (string) """ if callable(val): - word = word + "(" + word += "(" return word def global_matches(self, text): @@ -141,11 +141,11 @@ if word[:n] == text: seen.add(word) if word in {'finally', 'try'}: - word = word + ':' + word += ':' elif word not in {'False', 'None', 'True', 'break', 'continue', 'pass', 'else'}: - word = word + ' ' + word += ' ' matches.append(word) for nspace in [self.namespace, builtins.__dict__]: for word, val in nspace.items(): @@ -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 @@ -227,7 +224,7 @@ ret = dir(klass) if hasattr(klass, '__bases__'): for base in klass.__bases__: - ret = ret + get_class_members(base) + ret += get_class_members(base) return ret #