Files
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
..
2015-08-12 18:17:23 +02:00
2015-10-13 14:16:32 +02:00
2016-02-25 13:48:44 +01:00
2015-09-01 11:42:01 +02:00
2015-08-12 18:17:23 +02:00
2016-03-22 10:20:51 +01:00
2015-10-22 18:34:46 +02:00
2016-03-22 10:20:51 +01:00
2015-12-23 07:59:22 +01:00
2015-12-23 07:59:22 +01:00
2015-12-23 07:59:22 +01:00
2015-12-23 07:59:22 +01:00
2015-12-23 07:59:22 +01:00
2016-02-17 10:41:29 +01:00
2015-12-23 07:59:22 +01:00
2015-12-23 07:59:22 +01:00
2016-03-22 10:20:51 +01:00