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.
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 ion('bees' ) Badness' Badness: bees'
>>> e = dbus.DBusExcept
>>> e._dbus_error_name = 'com.example.
>>> str(e)
'com.example.
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.freedeskto p.org/~ smcv/dbus- python/ log/?h= fdo55899> when it gets round to refreshing.