dbus.Byte does not accept single character strings
Bug #1899298 reported by
Len Ovens
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.
To post a comment you must log in.
This is specific to this package in ubuntu 20.04.