#5990 Py3: zonemgr_callback: expected unicode, got bytes
Closed: fixed 7 years ago Opened 8 years ago by mbasti.

Following code in zonemgr_callback

            stderr_encoding = getattr(sys.stderr, 'encoding', None)
            if stderr_encoding is None:
                stderr_encoding = 'utf-8'
            error = unicode(e).encode(stderr_encoding)
            parser.error("invalid zonemgr: " + error)

error variable contains bytes, and bytes cannot be concatenated with string(unicode) in python3


mass moving python3 tickets to FreeIPA 4.6 which should be smaller release targeted mainly on python3 porting.

Metadata Update from @mbasti:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.6

7 years ago

Metadata Update from @mbasti:
- Issue close_status updated to: None
- Issue tagged with: py3

7 years ago

Metadata Update from @fbarreto:
- Issue assigned to fbarreto (was: mbasti)

7 years ago

master:

  • 75d26e1 py3: fixing zonemgr_callback

Metadata Update from @pvomacka:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

7 years ago

Log in to comment on this ticket.

Metadata