From 498579e5b0b0e1262e5d5f030a75563bb22af3b0 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 8 May 2019 21:46:55 +0200 Subject: [PATCH] Little fix to support.match --- channels/support.py | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/support.py b/channels/support.py index 23cc085c..5e0da055 100644 --- a/channels/support.py +++ b/channels/support.py @@ -418,6 +418,7 @@ def typo(string, typography=''): def match(item, patron='', patron_block='', headers='', url=''): + matches = [] url = url if url else item.url data = httptools.downloadpage(url, headers=headers).data.replace("'", '"') data = re.sub('\n|\t', '', data)