6117ec6153cd9e11192e98ca2dfbd1888574cff6,labelme/labelDialog.py,LabelDialog,postProcess,#LabelDialog#,88

Before Change


                self.accept()

    def postProcess(self):
        if QT5:
            self.edit.setText(self.edit.text().strip())
        else:
            self.edit.setText(self.edit.text().trimmed())

    def popUp(self, text=None, move=True):
        // if text is None, the previous label in self.edit is kept
        if text is None:
            text = self.edit.text()

After Change



    def postProcess(self):
        text = self.edit.text()
        if hasattr(text, "strip"):
            text = text.strip()
        else:
            text = text.trimmed()
        self.edit.setText(text)

    def popUp(self, text=None, move=True):
        // if text is None, the previous label in self.edit is kept
        if text is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: wkentaro/labelme
Commit Name: 6117ec6153cd9e11192e98ca2dfbd1888574cff6
Time: 2018-04-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: postProcess


Project Name: wkentaro/labelme
Commit Name: 5d1b7a5fd8d26d4422fc47dd65eeadd37517daa8
Time: 2018-04-01
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: popUp


Project Name: wkentaro/labelme
Commit Name: ad9e0c5079c07b255acacd82ba90aa6ecd04bf10
Time: 2018-03-31
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: popUp