fix python3 support

This commit is contained in:
dave mankoff 2013-01-28 22:21:45 -05:00
commit 2a3d7d0319
2 changed files with 6 additions and 3 deletions

View file

@ -26,7 +26,10 @@ except ImportError:
import re
import cgi
from HTMLParser import HTMLParser
try:
from html.parser import HTMLParser
except ImportError:
from HTMLParser import HTMLParser
from pelican.contents import Category, Tag, Author
from pelican.utils import get_date, pelican_open