freeipa/ipalib
Petr Viktorin 28b0bfaefe dns plugin: Fix zone normalization under Python 3
In Python 3, str.encode('ascii') converts to bytes, and str()
(nicknamed unicode() in IPA) returns the string representation
of an object, which is b'...' for bytes.

So, unicode('...'.encode('ascii')) results in "b'...'".

Change the code to only call encode() for the error.

Part of the work for https://fedorahosted.org/freeipa/ticket/4985

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-04-28 16:22:07 +02:00
..
plugins dns plugin: Fix zone normalization under Python 3 2016-04-28 16:22:07 +02:00
__init__.py Use absolute imports 2015-08-12 18:17:23 +02:00
aci.py ipalib.aci: Port to Python 3 2015-10-13 14:16:32 +02:00
backend.py Remove duplicated except 2016-02-25 13:48:44 +01:00
base.py Modernize use of range() 2015-09-01 11:42:01 +02:00
capabilities.py dns_name_values capability added 2014-06-03 15:55:32 +02:00
certstore.py Modernize 'except' clauses 2015-08-12 18:17:23 +02:00
cli.py pylint: remove bare except 2016-03-22 10:20:51 +01:00
config.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
constants.py pylint: remove bare except 2016-03-22 10:20:51 +01:00
crud.py Remove unused imports 2015-12-23 07:59:22 +01:00
errors.py Added fix for notifying user about Kerberos principal expiration in WebUI 2016-04-15 17:58:04 +02:00
frontend.py ipalib: add convenient Command method for adding messages 2016-03-03 10:06:18 +01:00
krb_utils.py pylint: supress false positive no-member errors 2016-03-02 14:57:36 +01:00
Makefile Package ipapython, ipalib, ipaplatform, ipatests for Python 3 2015-12-17 10:52:57 +01:00
messages.py specify type of exceeded limit when warning about truncated search results 2016-04-13 17:52:22 +02:00
output.py Remove unused imports 2015-12-23 07:59:22 +01:00
parameters.py Remove unused imports 2015-12-23 07:59:22 +01:00
pkcs10.py Remove unused imports 2015-12-23 07:59:22 +01:00
plugable.py Remove wildcard imports 2015-12-23 07:59:22 +01:00
request.py ipalib: provide per-call command context 2016-03-03 10:06:18 +01:00
rpc.py Fix bytes/string handling in rpc 2016-02-17 10:41:29 +01:00
session.py Pylint: remove unnecessary-semicolon 2016-03-22 10:20:51 +01:00
setup.py.in Remove unused imports 2015-12-23 07:59:22 +01:00
text.py Remove unused imports 2015-12-23 07:59:22 +01:00
util.py Do not do extra search for ipasshpubkey to generate fingerprints 2016-04-26 13:37:23 +02:00
x509.py Pylint: enable reimported check 2016-03-22 10:20:51 +01:00