From 7e17ffb75d68e58b6dbb020b6ae33f59f5ce9eda Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Tue, 18 Jun 2019 08:42:46 -0400 Subject: [PATCH] Also update the introducer's use of read_config --- src/allmydata/introducer/server.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/allmydata/introducer/server.py b/src/allmydata/introducer/server.py index c88f8e7a5..0a933bd01 100644 --- a/src/allmydata/introducer/server.py +++ b/src/allmydata/introducer/server.py @@ -30,10 +30,7 @@ are set to disallow users other than its owner from reading the contents of the files. See the 'configuration.rst' documentation file for details. """ - -def _valid_config_sections(): - return node._common_config_sections() - +_valid_config = node._common_valid_config class FurlFileConflictError(Exception): pass @@ -52,7 +49,7 @@ def create_introducer(basedir=u"."): config = read_config( basedir, u"client.port", generated_files=["introducer.furl"], - _valid_config_sections=_valid_config_sections, + _valid_config=_valid_config(), ) i2p_provider = create_i2p_provider(reactor, config)