Public bug reported:

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.

** Affects: dbus-python (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to