[sugar] [PATCH] services/presence/psutils: Remove bytes_to_string - no longer needed
Simon McVittie
simon.mcvittie
Thu May 24 07:49:41 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- ---
services/presence/psutils.py | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
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-----
More information about the Sugar-devel
mailing list