1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2025-12-30 22:22:26 +01:00
Files
ebook-converter/ebook_converter/polyglot/html_entities.py
2020-04-11 19:27:06 +02:00

11 lines
269 B
Python

#!/usr/bin/env python2
# vim:fileencoding=utf-8
# License: GPL v3 Copyright: 2019, Eli Schwartz <eschwartz@archlinux.org>
from polyglot.builtins import is_py3
if is_py3:
from html.entities import name2codepoint
else:
from htmlentitydefs import name2codepoint