Plugins/CheckerPlugins/Pep8/Pep8Dialog.py

changeset 2914
6b30a602e404
parent 2905
a1ae4b297bc0
child 2915
9da653363d07
equal deleted inserted replaced
2913:4e395efc0ef9 2914:6b30a602e404
202 @param statistics dictionary of statistical data with 202 @param statistics dictionary of statistical data with
203 message code as key and message count as value 203 message code as key and message count as value
204 @param fixer reference to the PEP 8 fixer (Pep8Fixer) 204 @param fixer reference to the PEP 8 fixer (Pep8Fixer)
205 """ 205 """
206 self.__statistics["_FilesCount"] += 1 206 self.__statistics["_FilesCount"] += 1
207 if statistics: 207 stats = {v: k for v, k in statistics.items() if v[0].isupper()}
208 if stats:
208 self.__statistics["_FilesIssues"] += 1 209 self.__statistics["_FilesIssues"] += 1
209 for key in statistics: 210 for key in statistics:
210 if key in self.__statistics: 211 if key in self.__statistics:
211 self.__statistics[key] += statistics[key] 212 self.__statistics[key] += statistics[key]
212 else: 213 else:

eric ide

mercurial