1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-07 05:23:34 +02:00

Moved replace_entities to utils.entities.

This commit is contained in:
2021-01-03 19:35:03 +01:00
parent 877ea68d42
commit dc4352fd4c
6 changed files with 14 additions and 20 deletions

View File

@@ -3,7 +3,7 @@ import os
import re
import mimetypes
from ebook_converter import replace_entities
from ebook_converter.utils import entities
def _upper(string):
@@ -185,7 +185,7 @@ def parse_css(data, fname='<string>', is_declaration=False, decode=None, log_lev
def handle_entities(text, func):
return func(replace_entities(text))
return func(entities.replace_entities(text))
def apply_func_to_match_groups(match, func=_upper,