small fix to the regex

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40279
This commit is contained in:
samus_ 2008-09-25 12:45:43 +00:00
parent 555cb0940b
commit c4aa1e7e8b
1 changed files with 1 additions and 1 deletions

View File

@ -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-]+)')