diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-09-17 18:46:14 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-10-22 18:34:46 +0200 |
commit | 8a2b65a35731470da0befeb01a4e863d782f0e6f (patch) | |
tree | c334d611ce5c702577345ec199086af6f59aa576 /ipapython/dnsutil.py | |
parent | 0a23afeab2bcba2d2694281cfc558f2821821f59 (diff) | |
download | freeipa-8a2b65a35731470da0befeb01a4e863d782f0e6f.tar.gz freeipa-8a2b65a35731470da0befeb01a4e863d782f0e6f.tar.xz freeipa-8a2b65a35731470da0befeb01a4e863d782f0e6f.zip |
Fix more bytes/unicode issues
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'ipapython/dnsutil.py')
-rw-r--r-- | ipapython/dnsutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipapython/dnsutil.py b/ipapython/dnsutil.py index 7844d7bec..a11d744d7 100644 --- a/ipapython/dnsutil.py +++ b/ipapython/dnsutil.py @@ -39,7 +39,7 @@ class DNSName(dns.name.Name): try: if isinstance(labels, six.string_types): #pylint: disable=E1101 - labels = dns.name.from_unicode(unicode(labels), origin).labels + labels = dns.name.from_text(unicode(labels), origin).labels elif isinstance(labels, dns.name.Name): labels = labels.labels |