DebugClients/Python/coverage/xmlreport.py

changeset 32
01f04fbc1842
parent 31
744cd0b4b8cd
child 790
2c0ea0163ef4
equal deleted inserted replaced
31:744cd0b4b8cd 32:01f04fbc1842
1 """XML reporting for coverage.py""" 1 """XML reporting for coverage.py"""
2 2
3 import os, sys, time 3 import os, sys, time
4 import xml.dom.minidom 4 import xml.dom.minidom
5 5
6 from coverage import __url__, __version__ 6 from . import __url__, __version__
7 from coverage.backward import sorted # pylint: disable-msg=W0622 7 from .backward import sorted # pylint: disable-msg=W0622
8 from coverage.report import Reporter 8 from .report import Reporter
9 9
10 def rate(hit, num): 10 def rate(hit, num):
11 """Return the fraction of `hit`/`num`.""" 11 """Return the fraction of `hit`/`num`."""
12 return hit / (num or 1.0) 12 return hit / (num or 1.0)
13 13

eric ide

mercurial