dbus.Byte does not accept single character strings

Bug #1899298 reported by Len Ovens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbus-python (Ubuntu)
New
Undecided
Unassigned

Bug Description

Using dbus.Byte to create a Byte value for dbus errors out with:
    return dbus.Byte(value);
TypeError: Expected a bytes or str of length 1, or an int in the range 0-255

even with a one character string like 'e' or 'a'. This is likely because python2 strings were char and python3 strings are unicode. dbus.Byte should still accept a str of length 1 and make the needed conversion internally.

Revision history for this message
Len Ovens (len-ovenwerks) wrote :

This is specific to this package in ubuntu 20.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.