src/eric7/QScintilla/TypingCompleters/CompleterPython.py

branch
eric7
changeset 9995
00eb2b418f8e
parent 9992
3d2f1101a23a
child 10069
435cc5875135
--- a/src/eric7/QScintilla/TypingCompleters/CompleterPython.py	Sat Apr 29 11:35:32 2023 +0200
+++ b/src/eric7/QScintilla/TypingCompleters/CompleterPython.py	Sat Apr 29 11:42:06 2023 +0200
@@ -116,12 +116,8 @@
                     self.editor.insert("self")
                     self.editor.setCursorPosition(line, col + 4)
             if self.__insertClosingBrace:
-                if (
-                    self.__defRX.fullmatch(txt) is not None
-                    or (
-                        self.__classRX.fullmatch(txt) is not None
-                        and txt.endswith("(")
-                    )
+                if self.__defRX.fullmatch(txt) is not None or (
+                    self.__classRX.fullmatch(txt) is not None and txt.endswith("(")
                 ):
                     self.editor.insert("):")
                 else:

eric ide

mercurial