We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e9c8bb commit 108bb58Copy full SHA for 108bb58
src/html/entities.py
@@ -4,5 +4,4 @@
4
if PY3:
5
from html.entities import *
6
else:
7
- __future_module__ = True
8
- from htmlentitydefs import *
+ from future.moves.html.entities import *
src/html/parser.py
@@ -1,8 +1,8 @@
1
from __future__ import absolute_import
2
-from future.utils import PY3
+import sys
3
+__future_module__ = True
-if PY3:
- from html.parser import *
+if sys.version_info[0] == 3:
+ raise ImportError('Cannot import module from python-future source folder')
- from HTMLParser import *
+ from future.moves.html.parser import *
0 commit comments