suppress only deprecation warnings

This commit is contained in:
Damien Churchill 2009-07-01 13:56:36 +00:00
parent 74627f682a
commit bbb087c04a
2 changed files with 2 additions and 2 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')
warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted')
# Setup the argument parser
parser = OptionParser(usage="%prog [options] [actions]",

View file

@ -45,7 +45,7 @@ DEFAULT_PREFS = {
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):