Comment 38 for bug 846044

Revision history for this message
In , Simon McVittie (smcv) wrote :

This appears to be LP#846044. It would be nice if you'd mentioned that.

Unfortunately, this patch causes some regressions. I can tell you didn't run 'make check', because when I did, it caught them...

Without the patch:

>>> import dbus
>>> e = dbus.DBusException('bees')
>>> e._dbus_error_name = 'com.example.Badness'
>>> str(e)
'com.example.Badness: bees'

With it (same preparation steps):

>>> str(e)
'bees'

Fixed in the fdo55899 branch in:

    git://people.freedesktop.org/~smcv/dbus-python

Please review, re-test. cgit at <http://cgit.freedesktop.org/~smcv/dbus-python/log/?h=fdo55899> when it gets round to refreshing.