[Bug 1899298] Re: dbus.Byte does not accept single character strings
Len Ovens
1899298 at bugs.launchpad.net
Sat Oct 10 21:25:42 UTC 2020
This is specific to this package in ubuntu 20.04.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dbus-python in Ubuntu.
https://bugs.launchpad.net/bugs/1899298
Title:
dbus.Byte does not accept single character strings
Status in dbus-python package in Ubuntu:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus-python/+bug/1899298/+subscriptions
More information about the foundations-bugs
mailing list