Only semi-break the web service.

This commit is contained in:
Itamar Turner-Trauring 2020-09-16 14:42:39 -04:00
parent 833bc72ac3
commit 2588e757e5

View File

@ -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):