Merge "Rewrite method contains_url in utils"

This commit is contained in:
Jenkins 2014-09-07 00:12:01 +00:00 committed by Gerrit Code Review
commit d95c74d421
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):