From: david-sarah Date: Sun, 16 May 2010 20:56:25 +0000 (-0700) Subject: Suppress deprecation warning for twisted.web.error.NoResource when using Twisted... X-Git-Url: https://git.rkrishnan.org/frontends/listings/configuration.rst?a=commitdiff_plain;h=e880fc2ce40d12e5219049e3a98f923debd8279c;p=tahoe-lafs%2Ftahoe-lafs.git Suppress deprecation warning for twisted.web.error.NoResource when using Twisted >= 9.0.0. --- diff --git a/src/allmydata/__init__.py b/src/allmydata/__init__.py index 1827adc8..8bc32cc9 100644 --- a/src/allmydata/__init__.py +++ b/src/allmydata/__init__.py @@ -22,6 +22,9 @@ warnings.filterwarnings("ignore", category=DeprecationWarning, warnings.filterwarnings("ignore", category=DeprecationWarning, message="the sha module is deprecated; use the hashlib module instead", append=True) +warnings.filterwarnings("ignore", category=DeprecationWarning, + message="twisted.web.error.NoResource is deprecated since Twisted 9.0. See twisted.web.resource.NoResource.", + append=True) try: import nevow from twisted.persisted import sob