Skip to content

Commit 109b1b4

Browse files
committed
Make the check_url script say 'No difference' when there is no difference found.
- Legacy-Id: 385
1 parent 44da4d5 commit 109b1b4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/check_url

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ for url in sys.argv[1:]:
4141
text1 = html2text(fetch(url1)).split("\n")
4242
print "Fetching %s ..." % url2
4343
text2 = html2text(fetch(url2)).split("\n")
44-
print "\n".join(unified_diff(text1, text2, url1, url2, "", "", 3, lineterm=""))
45-
44+
diff = "\n".join(unified_diff(text1, text2, url1, url2, "", "", 3, lineterm=""))
45+
if diff:
46+
print diff
47+
else:
48+
print "\nNo difference found"
4649

4750

0 commit comments

Comments
 (0)