mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-10 20:30:00 +00:00
add missing docs to new set_config method
This commit is contained in:
parent
d81fe54faf
commit
df53fdcf9b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user