summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-09-07 00:12:01 +0000
committerGerrit Code Review <review@openstack.org>2014-09-07 00:12:01 +0000
commitd95c74d421f751d5019beff15b148a73152bf8d2 (patch)
tree893507dff5164475cbe85b2b670be6402944a756
parent86712aba2caa0ef0816a1b08873a5d22112af9b9 (diff)
parentc7c2a6c2f44136381cad7d0fb315f15d604d0db6 (diff)
Merge "Rewrite method contains_url in utils"
-rw-r--r--doc8/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc8/utils.py b/doc8/utils.py
index 4e50217..d500d15 100644
--- a/doc8/utils.py
+++ b/doc8/utils.py
@@ -65,9 +65,7 @@ def filtered_traverse(document, filter_func):
65 65
66 66
67def contains_url(line): 67def contains_url(line):
68 if "http://" in line or "https://" in line: 68 return "http://" in line or "https://" in line
69 return True
70 return False
71 69
72 70
73def has_any_node_type(node, node_types): 71def has_any_node_type(node, node_types):