# HG changeset patch # User Will Thompson # Date 1193589010 0 # Node ID ec9c30ce628d59ead3194f330da283173bd1ebcd # Parent afb4704781ed56fdb5c8d9d9c135287a1795119e Silence warnings from dbus-analyze-functions.py about calling 'raise' on a string (which is deprecated) by raising a stub exception instead. diff -r afb4704781ed -r ec9c30ce628d libpurple/dbus-analyze-functions.py --- a/libpurple/dbus-analyze-functions.py Sat Oct 27 17:47:48 2007 +0000 +++ b/libpurple/dbus-analyze-functions.py Sun Oct 28 16:30:10 2007 +0000 @@ -75,7 +75,11 @@ ] pointer = "#pointer#" -myexception = "My Exception" + +class MyException(Exception): + pass + +myexception = MyException() def ctopascal(name): newname = "" @@ -520,7 +524,7 @@ try: self.processfunction(functiontext, paramtexts) - except myexception: + except MyException: sys.stderr.write(myline + "\n") except: sys.stderr.write(myline + "\n")