src/eric7/QScintilla/TypingCompleters/CompleterPython.py

branch
eric7
changeset 9995
00eb2b418f8e
parent 9992
3d2f1101a23a
child 10069
435cc5875135
equal deleted inserted replaced
9994:16ed71ff72bd 9995:00eb2b418f8e
114 pass 114 pass
115 elif self.__isClassMethod(): 115 elif self.__isClassMethod():
116 self.editor.insert("self") 116 self.editor.insert("self")
117 self.editor.setCursorPosition(line, col + 4) 117 self.editor.setCursorPosition(line, col + 4)
118 if self.__insertClosingBrace: 118 if self.__insertClosingBrace:
119 if ( 119 if self.__defRX.fullmatch(txt) is not None or (
120 self.__defRX.fullmatch(txt) is not None 120 self.__classRX.fullmatch(txt) is not None and txt.endswith("(")
121 or (
122 self.__classRX.fullmatch(txt) is not None
123 and txt.endswith("(")
124 )
125 ): 121 ):
126 self.editor.insert("):") 122 self.editor.insert("):")
127 else: 123 else:
128 self.editor.insert(")") 124 self.editor.insert(")")
129 self.editor.endUndoAction() 125 self.editor.endUndoAction()

eric ide

mercurial