DataViews/PyCoverageDialog.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3032
927a2f8b3669
child 3080
6c0a430b19df
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
195 return 195 return
196 196
197 try: 197 try:
198 statements, excluded, missing, readable = \ 198 statements, excluded, missing, readable = \
199 cover.analysis2(file)[1:] 199 cover.analysis2(file)[1:]
200 readableEx = (excluded and self.__format_lines(excluded) 200 readableEx = (excluded and self.__format_lines(excluded)
201 or '') 201 or '')
202 n = len(statements) 202 n = len(statements)
203 m = n - len(missing) 203 m = n - len(missing)
204 if n > 0: 204 if n > 0:
205 pc = 100.0 * m / n 205 pc = 100.0 * m / n

eric ide

mercurial