Skip to content

Commit 1b26589

Browse files
committed
using six to add compatibility with python 3
1 parent 264afd1 commit 1b26589

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

htmlentities/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from htmlentitydefs import codepoint2name, name2codepoint
2-
31
import re
42

3+
from six.moves.html_entities import codepoint2name, name2codepoint
4+
from six import unichr
5+
56

6-
__version__ = '0.2.1'
7+
__version__ = '0.3.0'
78

89

910
def encode(source):

0 commit comments

Comments
 (0)