mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
fix python3 support
This commit is contained in:
parent
7b59b34a73
commit
2a3d7d0319
2 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue