mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Annotate py3k code when needed.
This commit is contained in:
parent
4ac094966e
commit
149ca493e0
4 changed files with 7 additions and 2 deletions
|
|
@ -4,9 +4,11 @@
|
|||
from __future__ import unicode_literals, print_function
|
||||
import argparse
|
||||
try:
|
||||
# py3k import
|
||||
from html.parser import HTMLParser
|
||||
except ImportError:
|
||||
from HTMLParser import HTMLParser
|
||||
# py2 import
|
||||
from HTMLParser import HTMLParser # NOQA
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue