From e880fc2ce40d12e5219049e3a98f923debd8279c Mon Sep 17 00:00:00 2001 From: david-sarah Date: Sun, 16 May 2010 13:56:25 -0700 Subject: [PATCH] Suppress deprecation warning for twisted.web.error.NoResource when using Twisted >= 9.0.0. --- src/allmydata/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.45.2