55 text = pep8.getMessage(code, *args) |
55 text = pep8.getMessage(code, *args) |
56 self.errors.append( |
56 self.errors.append( |
57 (self.filename, line_number, offset, text) |
57 (self.filename, line_number, offset, text) |
58 ) |
58 ) |
59 return code |
59 return code |
60 |
60 |
|
61 |
61 class Pep8Dialog(QDialog, Ui_Pep8Dialog): |
62 class Pep8Dialog(QDialog, Ui_Pep8Dialog): |
62 """ |
63 """ |
63 Class implementing a dialog to show the results of the PEP 8 check. |
64 Class implementing a dialog to show the results of the PEP 8 check. |
64 """ |
65 """ |
65 filenameRole = Qt.UserRole + 1 |
66 filenameRole = Qt.UserRole + 1 |