diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-22 09:12:21 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-22 09:12:21 -0400 |
commit | 852c6a7398fb5934b22dbe078f7cb2914bc4e0cd (patch) | |
tree | d51ad034da235736eabbd141fdf25c103f419270 /coverage/xmlreport.py | |
parent | 9266eebcd681ec38f118fe018a154acb5f1c67ae (diff) | |
download | python-coveragepy-git-852c6a7398fb5934b22dbe078f7cb2914bc4e0cd.tar.gz |
The DTD is no longer valid. Don't reference it.
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r-- | coverage/xmlreport.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py index 0df449f3..aa12ab2d 100644 --- a/coverage/xmlreport.py +++ b/coverage/xmlreport.py @@ -47,8 +47,7 @@ class XmlReporter(Reporter): # Create the DOM that will store the data. impl = xml.dom.minidom.getDOMImplementation() - docType = impl.createDocumentType("coverage", None, DTD_URL) - self.xml_out = impl.createDocument(None, "coverage", docType) + self.xml_out = impl.createDocument(None, "coverage", None) # Write header stuff. xcoverage = self.xml_out.documentElement @@ -57,6 +56,7 @@ class XmlReporter(Reporter): xcoverage.appendChild(self.xml_out.createComment( " Generated by coverage.py: %s " % __url__ )) + xcoverage.appendChild(self.xml_out.createComment(" Based on %s " % DTD_URL)) # Call xml_file for each file in the data. self.report_files(self.xml_file, morfs) |