mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-24 14:17:41 -05: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:
1 parent
f4716b6991
commit
854597c411
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user