summaryrefslogtreecommitdiff
path: root/coverage/xmlreport.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/xmlreport.py')
-rw-r--r--coverage/xmlreport.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py
index 843fd7c2..5f16bc4f 100644
--- a/coverage/xmlreport.py
+++ b/coverage/xmlreport.py
@@ -8,9 +8,11 @@ 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')
+DTD_URL = (
+ 'https://raw.githubusercontent.com/cobertura/web/'
+ 'f0366e5e2cf18f111cbd61fc34ef720a6584ba02'
+ '/htdocs/xml/coverage-03.dtd'
+)
def rate(hit, num):
@@ -45,10 +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
- )
+ docType = impl.createDocumentType("coverage", None, DTD_URL)
self.xml_out = impl.createDocument(None, "coverage", docType)
# Write header stuff.