Rewrite method contains_url in utils

Change-Id: I05a0e6949f9411c52ef541f6061d965b607206ef
This commit is contained in:
Christian Berendt 2014-09-06 11:27:56 +02:00
parent a16a84e37b
commit c7c2a6c2f4
1 changed files with 1 additions and 3 deletions

View File

@ -65,9 +65,7 @@ def filtered_traverse(document, filter_func):
def contains_url(line):
if "http://" in line or "https://" in line:
return True
return False
return "http://" in line or "https://" in line
def has_any_node_type(node, node_types):