From a82dbe6bfd8e77434591573392623b1cb02119c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 1 Dec 2015 09:47:03 +0100 Subject: [PATCH] Specify lxml backend for bs4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- files/management/commands/import_files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/management/commands/import_files.py b/files/management/commands/import_files.py index eefb7909..96a9b447 100644 --- a/files/management/commands/import_files.py +++ b/files/management/commands/import_files.py @@ -71,7 +71,8 @@ def process_releases(self, path): release.release_notes_markup_type = 'html' release.release_notes = u'
{0}
'.format( BeautifulSoup( - handle.read() + handle.read(), + 'lxml', ).get_text() ) release.save()