Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Commit

Permalink
use our name2codepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-dartigues committed Oct 4, 2018
1 parent ee925aa commit 0cb27d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions characterentities/__init__.py
Expand Up @@ -10,10 +10,12 @@
import re
import sys

from characterentities.entities import name2codepoint

if sys.version_info[0] == 2:
from htmlentitydefs import codepoint2name, name2codepoint
from htmlentitydefs import codepoint2name
elif sys.version_info[0] == 3:
from html.entities import codepoint2name, name2codepoint
from html.entities import codepoint2name
unichr = chr


Expand Down

0 comments on commit 0cb27d6

Please sign in to comment.