im.pidgin.pidgin: 636dac307caade6b4c06cda5005f90ad32809b40

resiak at soc.pidgin.im resiak at soc.pidgin.im
Sun Oct 28 12:56:28 EDT 2007


-----------------------------------------------------------------
Revision: 636dac307caade6b4c06cda5005f90ad32809b40
Ancestor: 32f31e981f0618a4167aa98bcc22c2dab13d1550
Author: resiak at soc.pidgin.im
Date: 2007-10-28T16:30:10
Branch: im.pidgin.pidgin

Modified files:
        libpurple/dbus-analyze-functions.py

ChangeLog: 

Silence warnings from dbus-analyze-functions.py about calling 'raise' on a
string (which is deprecated) by raising a stub exception instead.

-------------- next part --------------
============================================================
--- libpurple/dbus-analyze-functions.py	677d0140706eee26bd3c62d5db8ab416299f9617
+++ libpurple/dbus-analyze-functions.py	3901f07c522d2548be351d9f5e96af3a1f12076a
@@ -75,8 +75,12 @@ pointer = "#pointer#"
 ]
 
 pointer = "#pointer#"
-myexception = "My Exception"
 
+class MyException(Exception):
+    pass
+
+myexception = MyException()
+
 def ctopascal(name):
     newname = ""
     for word in name.split("_"):
@@ -520,7 +524,7 @@ class BindingSet:
 
             try:
                 self.processfunction(functiontext, paramtexts)
-            except myexception:
+            except MyException:
                 sys.stderr.write(myline + "\n")
             except:
                 sys.stderr.write(myline + "\n")


More information about the Commits mailing list