Plugins/CheckerPlugins/Pep8/Pep8Dialog.py

branch
5_3_x
changeset 2865
05ddaf1e8d76
parent 2801
8ccc38b80dc2
child 2877
682ef11723c5
equal deleted inserted replaced
2857:614c63dfb798 2865:05ddaf1e8d76
170 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) 170 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False)
171 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) 171 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
172 172
173 self.__data = self.__project.getData("CHECKERSPARMS", "Pep8Checker") 173 self.__data = self.__project.getData("CHECKERSPARMS", "Pep8Checker")
174 if self.__data is None or \ 174 if self.__data is None or \
175 "ExcludeFiles" not in self.__data or \ 175 len(self.__data) < 6:
176 len(self.__data) != 6:
177 # initialize the data structure 176 # initialize the data structure
178 self.__data = { 177 self.__data = {
179 "ExcludeFiles": "", 178 "ExcludeFiles": "",
180 "ExcludeMessages": pep8.DEFAULT_IGNORE, 179 "ExcludeMessages": pep8.DEFAULT_IGNORE,
181 "IncludeMessages": "", 180 "IncludeMessages": "",

eric ide

mercurial