add support for Beautiful Soup 4

This commit is contained in:
Tim Harder
2012-06-08 00:18:59 -07:00
parent 5b1884ead7
commit 5df28b028e
2 changed files with 8 additions and 2 deletions

View File

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