Merge pull request #16 from radhermit/bs4

add support for Beautiful Soup 4
This commit is contained in:
Corentin Chary 2012-06-11 00:03:07 -07:00
commit 8f1668b51e
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,9 @@
import StringIO import StringIO
try:
from BeautifulSoup import BeautifulSoup from BeautifulSoup import BeautifulSoup
except ImportError:
from bs4 import BeautifulSoup
from djeuscan.tests import SystemTestCase from djeuscan.tests import SystemTestCase
from djeuscan.tests.euscan_factory import PackageFactory, setup_maintainers, \ from djeuscan.tests.euscan_factory import PackageFactory, setup_maintainers, \

View File

@ -2,7 +2,10 @@ import urllib2
import re import re
import StringIO import StringIO
try:
from BeautifulSoup import BeautifulSoup from BeautifulSoup import BeautifulSoup
except ImportError:
from bs4 import BeautifulSoup
import portage import portage