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

Get rid of icu string functions in favor of native ones.

This commit is contained in:
2020-05-03 20:19:11 +02:00
parent 212cb56d42
commit da010d7841
10 changed files with 138 additions and 185 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ from collections import defaultdict
from itertools import count
from operator import attrgetter
import urllib.parse
import string
from lxml import etree, html
from ebook_converter import force_unicode
@@ -763,7 +764,7 @@ class Metadata(object):
key = barename(key)
attrib[key] = prefixname(value, nsrmap)
if namespace(self.term) == DC11_NS:
name = DC(icu_title(barename(self.term)))
name = DC(string.capwords(barename(self.term)))
elem = element(dcmeta, name, attrib=attrib)
elem.text = self.value
else: