remove python2 import check

This commit is contained in:
Eric Le Lay 2020-07-10 16:49:14 +02:00
parent 70e30d03cf
commit 9fd26f2f96
1 changed files with 2 additions and 8 deletions

View File

@ -58,20 +58,14 @@ import urllib.parse
import urllib.request
import webbrowser
import xml.dom.minidom
from html.entities import entitydefs
from html.entities import entitydefs, name2codepoint
from html.parser import HTMLParser
import gpodder
logger = logging.getLogger(__name__)
if sys.hexversion < 0x03000000:
from html.parser import HTMLParser
from html.entities import name2codepoint
else:
from html.parser import HTMLParser
from html.entities import name2codepoint
try:
import html5lib
except ImportError: