Skip to content

Commit

Permalink
fix the xml
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyin committed Jul 26, 2017
1 parent 154eaa8 commit ecf3292
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright Terry Yin and other contributors, https://jquery.org/
Copyright Terry Yin and other contributors

This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history.
Expand Down
2 changes: 1 addition & 1 deletion lizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
except ImportError:
pass

VERSION = "1.12.10"
VERSION = "1.12.11"

DEFAULT_CCN_THRESHOLD, DEFAULT_WHITELIST, \
DEFAULT_MAX_FUNC_LENGTH = 15, "whitelizard.txt", 1000
Expand Down
2 changes: 1 addition & 1 deletion lizard_ext/xmloutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def xml_output(result, verbose):
processing_instruction = doc.createProcessingInstruction(
'xml-stylesheet',
'type="text/xsl" ' +
'href="https://raw.github.com/terryyin/lizard/master/lizard.xsl"')
'href="https://raw.githubusercontent.com/terryyin/lizard/master/lizard.xsl"')
doc.insertBefore(processing_instruction, root)

root.appendChild(_create_function_measure(doc, result, verbose))
Expand Down
2 changes: 1 addition & 1 deletion test/testOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_xml_output(self):
self.assertIn('''foo at f1.c:100''', self.xml)

def test_xml_stylesheet(self):
self.assertIn('''<?xml-stylesheet type="text/xsl" href="https://raw.github.com/terryyin/lizard/master/lizard.xsl"?>''', self.xml)
self.assertIn('''<?xml-stylesheet type="text/xsl" href="https://raw.githubusercontent.com/terryyin/lizard/master/lizard.xsl"?>''', self.xml)

def test_xml_output_on_empty_folder(self):
xml_empty = xml_output([], True)
Expand Down

0 comments on commit ecf3292

Please sign in to comment.