Author: damoxc

Revision: 5433

Log:
        suppress only deprecation warnings

Diff:
Modified: trunk/deluge/main.py
===================================================================
--- trunk/deluge/main.py        2009-07-01 13:51:56 UTC (rev 5432)
+++ trunk/deluge/main.py        2009-07-01 13:56:36 UTC (rev 5433)
@@ -128,7 +128,7 @@
 
     if 'dev' not in deluge.common.get_version():
         import warnings
-        warnings.filterwarnings('ignore', module='twisted')
+        warnings.filterwarnings('ignore', category=DeprecationWarning, 
module='twisted')
 
     # Setup the argument parser
     parser = OptionParser(usage="%prog [options] [actions]",

Modified: trunk/deluge/ui/ui.py
===================================================================
--- trunk/deluge/ui/ui.py       2009-07-01 13:51:56 UTC (rev 5432)
+++ trunk/deluge/ui/ui.py       2009-07-01 13:56:36 UTC (rev 5433)
@@ -45,7 +45,7 @@
 
 if 'dev' not in deluge.common.get_version():
     import warnings
-    warnings.filterwarnings('ignore', module='twisted')
+    warnings.filterwarnings('ignore', category=DeprecationWarning, 
module='twisted')
 
 class _UI(object):
 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to