summaryrefslogtreecommitdiff
path: root/coverage/xmlreport.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r--coverage/xmlreport.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py
index 9c7ab7c5..843fd7c2 100644
--- a/coverage/xmlreport.py
+++ b/coverage/xmlreport.py
@@ -8,6 +8,10 @@ import xml.dom.minidom
from coverage import __url__, __version__, files
from coverage.report import Reporter
+DTD_URL = ('https://raw.githubusercontent.com/cobertura/web/'
+ 'f0366e5e2cf18f111cbd61fc34ef720a6584ba02'
+ '/htdocs/xml/coverage-03.dtd')
+
def rate(hit, num):
"""Return the fraction of `hit`/`num`, as a string."""
@@ -43,7 +47,7 @@ class XmlReporter(Reporter):
impl = xml.dom.minidom.getDOMImplementation()
docType = impl.createDocumentType(
"coverage", None,
- "http://cobertura.sourceforge.net/xml/coverage-03.dtd"
+ DTD_URL
)
self.xml_out = impl.createDocument(None, "coverage", docType)