Skip to content

Commit c81e64a

Browse files
author
mohammad taleb
committed
Add beautifulsoup version 4
1 parent 97f3409 commit c81e64a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

html5boilerplate/templatetags/html5boilerplate_tags.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
from django.conf import settings
33
from django.template import TemplateSyntaxError
44
import re
5-
from BeautifulSoup import BeautifulSoup
5+
try:
6+
from bs4 import BeautifulSoup
7+
except ImportError:
8+
try:
9+
from BeautifulSoup import BeautifulSoup
10+
except ImportError:
11+
raise
12+
613
import urllib
714

815

0 commit comments

Comments
 (0)