Merge pull request #478 from vstoykov/fix/warnings

Pass features to BeautifulSoup constructor
This commit is contained in:
Venelin Stoykov 2018-10-12 23:31:54 +03:00 committed by GitHub
commit 94cc8ed9e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ def render_tag(ttag):
def get_html_attrs(ttag):
return BeautifulSoup(render_tag(ttag)).img.attrs
return BeautifulSoup(render_tag(ttag), features="html.parser").img.attrs
def assert_file_is_falsy(file):