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() |