[telepathy-gabble/master] servicetest.py: BaseException.message has been deprecated

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Aug 19 02:26:26 PDT 2009


Since Python 2.6, BaseException.message has been deprecated (see PEP
352). We should use the string representation instead.
---
 tests/twisted/servicetest.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/servicetest.py b/tests/twisted/servicetest.py
index c2f5917..aabdc00 100644
--- a/tests/twisted/servicetest.py
+++ b/tests/twisted/servicetest.py
@@ -261,7 +261,7 @@ def call_async(test, proxy, method, *args, **kw):
 
     def error_func(err):
         test.handle_event(Event('dbus-error', method=method, error=err,
-            name=err.get_dbus_name(), message=err.message))
+            name=err.get_dbus_name(), message=str(err)))
 
     method_proxy = getattr(proxy, method)
     kw.update({'reply_handler': reply_func, 'error_handler': error_func})
-- 
1.5.6.5



More information about the telepathy-commits mailing list