From df9b160a3cf62b77d5302206ce519d91c87c1a94 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Fri, 1 May 2020 17:42:46 -0400 Subject: [PATCH] Mark describe server method as static --- src/allmydata/web/root.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/web/root.py b/src/allmydata/web/root.py index be102cce1..b4eea1cc9 100644 --- a/src/allmydata/web/root.py +++ b/src/allmydata/web/root.py @@ -449,7 +449,8 @@ class RootElement(Element): sb = self._client.get_storage_broker() return sorted(sb.get_known_servers(), key=lambda s: s.get_serverid()) - def _describe_server(self, server): + @staticmethod + def _describe_server(server): """Return a dict containing server stats.""" peerid = server.get_longname() nickname = server.get_nickname()