use only "twisted" in the module arg as that suppresses all warnings from twisted

This commit is contained in:
Damien Churchill 2009-07-01 13:51:56 +00:00
parent 958c6334b0
commit 74627f682a
2 changed files with 3 additions and 4 deletions

View File

@ -128,7 +128,7 @@ def start_daemon():
if 'dev' not in deluge.common.get_version():
import warnings
warnings.filterwarnings('ignore', module='twisted.internet._sslverify')
warnings.filterwarnings('ignore', module='twisted')
# Setup the argument parser
parser = OptionParser(usage="%prog [options] [actions]",

View File

@ -38,15 +38,14 @@ import deluge.common
import deluge.configmanager
import deluge.log
import os
import warnings
DEFAULT_PREFS = {
"default_ui": "gtk"
}
if 'dev' not in deluge.common.get_version():
warnings.filterwarnings('ignore', module='twisted.persisted.sob')
warnings.filterwarnings('ignore', module='twisted.python.filepath')
import warnings
warnings.filterwarnings('ignore', module='twisted')
class _UI(object):