diff options
author | Leonard Richardson <leonardr@segfault.org> | 2019-12-24 09:06:53 -0500 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2019-12-24 09:06:53 -0500 |
commit | 11d1335989f5dde3b1c6b84f05bc6cf8a1fedd59 (patch) | |
tree | e43984bc5caea7469639ab001295c4f1c3233197 /bs4/dammit.py | |
parent | b7dec273425095f8e2ab1f1c58ecc124ca63e856 (diff) |
Fixed deprecation warning. [bug=1855301]
Diffstat (limited to 'bs4/dammit.py')
-rw-r--r-- | bs4/dammit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/dammit.py b/bs4/dammit.py index e72a867..eb08568 100644 --- a/bs4/dammit.py +++ b/bs4/dammit.py @@ -53,7 +53,7 @@ except ImportError: # Build bytestring and Unicode versions of regular expressions for finding # a declared encoding inside an XML or HTML document. -xml_encoding = u'^\s*<\\?.*encoding=[\'"](.*?)[\'"].*\\?>' +xml_encoding = u'^\\s*<\\?.*encoding=[\'"](.*?)[\'"].*\\?>' html_meta = u'<\\s*meta[^>]+charset\\s*=\\s*["\']?([^>]*?)[ /;\'">]' encoding_res = dict() encoding_res[bytes] = { |