From c4aa1e7e8ba502c64428f8bb3aa8ff823c711e8c Mon Sep 17 00:00:00 2001 From: samus_ Date: Thu, 25 Sep 2008 12:45:43 +0000 Subject: [PATCH] small fix to the regex --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40279 --- scrapy/trunk/scrapy/http/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/trunk/scrapy/http/response.py b/scrapy/trunk/scrapy/http/response.py index 3f490c2e5..ddc82d085 100644 --- a/scrapy/trunk/scrapy/http/response.py +++ b/scrapy/trunk/scrapy/http/response.py @@ -106,7 +106,7 @@ class ResponseBody(object): This handles conversion to unicode and various character encodings. """ - _template = r'%s\s*=\s*[\"\']?\s*%s\s*[\"\']?' + _template = r'''%s\s*=\s*["']?\s*%s\s*["']?''' _httpequiv_re = _template % ('http-equiv', 'Content-Type') _content_re = _template % ('content', r'(?P[^;]+);\s*charset=(?P[\w-]+)')