mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use intended format() method of translation object
Translation objects have support for format(). This allows to get rid of unicode() which is deprecated in Python3. Fixes: https://pagure.io/freeipa/issue/7586 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
f4716b6991
commit
854597c411
@ -1270,7 +1270,7 @@ class TrustDomainInstance(object):
|
||||
ttype = trust_type_string(
|
||||
res.info_ex.trust_type, res.info_ex.trust_attributes
|
||||
)
|
||||
err = unicode(msg).format(
|
||||
err = msg.format(
|
||||
ipa_domain=another_domain.info['dns_domain'],
|
||||
trust_type=ttype)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user