Scrapy, a fast high-level web crawling & scraping framework for Python.
small fix to the regex
samus_c4aa1e7e8ba5
diff --git a/scrapy/trunk/scrapy/http/response.py b/scrapy/trunk/scrapy/http/response.pyindex 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<mime>[^;]+);\s*charset=(?P<charset>[\w-]+)')