Skip to content

Commit

Permalink
Specify lxml backend for bs4
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Dec 1, 2015
1 parent f10b557 commit a82dbe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/management/commands/import_files.py
Expand Up @@ -71,7 +71,8 @@ def process_releases(self, path):
release.release_notes_markup_type = 'html'
release.release_notes = u'<pre>{0}</pre>'.format(
BeautifulSoup(
handle.read()
handle.read(),
'lxml',
).get_text()
)
release.save()
Expand Down

0 comments on commit a82dbe6

Please sign in to comment.