Suppress deprecation warning for twisted.web.error.NoResource when using Twisted >= 9.0.0.
This commit is contained in:
parent
907eff52c6
commit
e880fc2ce4
|
@ -22,6 +22,9 @@ warnings.filterwarnings("ignore", category=DeprecationWarning,
|
||||||
warnings.filterwarnings("ignore", category=DeprecationWarning,
|
warnings.filterwarnings("ignore", category=DeprecationWarning,
|
||||||
message="the sha module is deprecated; use the hashlib module instead",
|
message="the sha module is deprecated; use the hashlib module instead",
|
||||||
append=True)
|
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:
|
try:
|
||||||
import nevow
|
import nevow
|
||||||
from twisted.persisted import sob
|
from twisted.persisted import sob
|
||||||
|
|
Loading…
Reference in New Issue