From df53fdcf9bd923e7b548d21d5365f3179e8ba8aa Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 26 Nov 2020 10:53:42 -0500 Subject: [PATCH] add missing docs to new set_config method --- src/allmydata/node.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 93fb7461d..98d7dbafa 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -374,6 +374,16 @@ class _Config(object): def set_config(self, section, option, value): """ Set a config option in a section and re-write the tahoe.cfg file + + :param str section: The name of the section in which to set the + option. + + :param str option: The name of the option to set. + + :param str value: The value of the option. + + :raise UnescapedHashError: If the option holds a fURL and there is a + ``#`` in the value. """ if option.endswith(".furl") and "#" in value: raise UnescapedHashError(section, option, value)