[sugar] [PATCH] services/presence/psutils: Remove bytes_to_string - no longer needed

Dan Williams dcbw
Thu May 24 13:51:47 EDT 2007


On Thu, 2007-05-24 at 12:49 +0100, Simon McVittie wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> - ---
>  services/presence/psutils.py |   15 ---------------
>  1 files changed, 0 insertions(+), 15 deletions(-)

Yay, kill kill kill

> diff --git a/services/presence/psutils.py b/services/presence/psutils.py
> index 4d6ae3d..c2c1b03 100644
> - --- a/services/presence/psutils.py
> +++ b/services/presence/psutils.py
> @@ -21,21 +21,6 @@ import logging
>  _logger = logging.getLogger('s-p-s.psutils')
>  
> 
> - -def bytes_to_string(bytes):
> - -    """The function converts a  D-BUS byte array provided by dbus to string format.
> - -    
> - -    bytes -- a D-Bus array of bytes. Handle both DBus byte arrays and strings
> - -    
> - -    """
> - -    try:
> - -        # DBus Byte array
> - -        ret = ''.join([chr(item) for item in bytes])
> - -    except TypeError:
> - -        # Python string
> - -        ret = ''.join([str(item) for item in bytes])
> - -    return ret
> - -
> - -
>  NM_SERVICE = 'org.freedesktop.NetworkManager'
>  NM_IFACE = 'org.freedesktop.NetworkManager'
>  NM_IFACE_DEVICES = 'org.freedesktop.NetworkManager.Devices'
> - -- 
> 1.5.2-rc3.GIT
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net
> 
> iD8DBQFGVXvVWSc8zVUw7HYRAshCAJ4sX9wSeCuB4v4VbPVt08YzL1524wCg7fmg
> NRKD446No927W/EPmQHSY4M=
> =HM4f
> -----END PGP SIGNATURE-----
> _______________________________________________
> Sugar mailing list
> Sugar at laptop.org
> http://mailman.laptop.org/mailman/listinfo/sugar




More information about the Sugar-devel mailing list