def status_to_string(dbus_status):
 status_tuple = ((dbus_status & 1), (dbus_status & 2), (dbus_status & 4), (dbus_status & 8), (dbus_status & 16), (dbus_status & 32), (dbus_status & 64), (dbus_status & 128), (dbus_status & 256))
 return [DBUS_STATUS_MAP[status] for status in status_tuple if status]

def status_to_string ( dbus_status ) : status_tuple = ( ( dbus_status & 1 ) , ( dbus_status & 2 ) , ( dbus_status & 4 ) , ( dbus_status & 8 ) , ( dbus_status & 16 ) , ( dbus_status & 32 ) , ( dbus_status & 64 ) , ( dbus_status & 128 ) , ( dbus_status & 256 ) ) return [ DBUS_STATUS_MAP [ status ] for status in status_tuple if status ]
converts a numeric dbus snapper status into a string cli example: .