commit 303f2a91a5708e553bf25b9bf76cfec24ca294cd
Author: Till Maas <opensource(a)till.name>
Date: Tue Jul 28 23:02:49 2015 +0200
Set default BeautifulSoup parser
This is required to get rid of a UserWarning in Fedora 22.
pkgdb2client/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkgdb2client/__init__.py b/pkgdb2client/__init__.py
index cc73e21..6c949ee 100644
--- a/pkgdb2client/__init__.py
+++ b/pkgdb2client/__init__.py
@@ -70,7 +70,7 @@ def _parse_service_form(response):
"""
import bs4
- parsed = bs4.BeautifulSoup(response.text)
+ parsed = bs4.BeautifulSoup(response.text, "lxml")
inputs = {}
for child in parsed.form.find_all(name='input'):
if child.attrs['type'] == 'submit':
Show replies by date