Merge pull request #16 from radhermit/bs4
add support for Beautiful Soup 4
This commit is contained in:
commit
8f1668b51e
@ -1,6 +1,9 @@
|
||||
import StringIO
|
||||
|
||||
try:
|
||||
from BeautifulSoup import BeautifulSoup
|
||||
except ImportError:
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
from djeuscan.tests import SystemTestCase
|
||||
from djeuscan.tests.euscan_factory import PackageFactory, setup_maintainers, \
|
||||
|
@ -2,7 +2,10 @@ import urllib2
|
||||
import re
|
||||
import StringIO
|
||||
|
||||
try:
|
||||
from BeautifulSoup import BeautifulSoup
|
||||
except ImportError:
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
import portage
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user