From 2588e757e51753f4958a8ee2e24381b87cac2069 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Wed, 16 Sep 2020 14:42:39 -0400 Subject: [PATCH] Only semi-break the web service. --- src/allmydata/test/no_network.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/allmydata/test/no_network.py b/src/allmydata/test/no_network.py index 4a75920b2..eb2bfd1a1 100644 --- a/src/allmydata/test/no_network.py +++ b/src/allmydata/test/no_network.py @@ -20,7 +20,7 @@ from __future__ import unicode_literals # Tubs, so it is not useful for tests that involve a Helper or the # control.furl . -from future.utils import PY2 +from future.utils import PY2, PY3 if PY2: from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401 from past.builtins import unicode @@ -268,8 +268,11 @@ class _NoNetworkClient(_Client): def init_stub_client(self): pass #._servers will be set by the NoNetworkGrid which creates us - def init_web(self, *args, **kwargs): - pass + + if PY3: + def init_web(self, *args, **kwargs): + print("Web service is temporarily disabled until nevow is gone.") + class SimpleStats(object): def __init__(self):