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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user