From 4ebd6250e3c10cc0167796e87ed0a28a1eb83976 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Mon, 4 May 2020 14:20:05 -0400 Subject: [PATCH] Document root.Root --- src/allmydata/web/root.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/allmydata/web/root.py b/src/allmydata/web/root.py index ddb05a72e..f09a500a7 100644 --- a/src/allmydata/web/root.py +++ b/src/allmydata/web/root.py @@ -206,6 +206,14 @@ class Root(MultiFormatResource): addSlash = True def __init__(self, client, clock=None, now_fn=None): + """ + Render root page ("/") of the URI. + + :client allmydata.client._Client: a stats provider. + :clock: unused here. + :now_fn: a function that returns current time. + + """ super(Root, self).__init__() self._client = client self._now_fn = now_fn