mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 13:57:51 +00:00
make code more like master
This commit is contained in:
parent
e6cb700bcc
commit
02c3401e01
@ -205,13 +205,14 @@ def config_from_string(basedir, portnumfile, config_str, _valid_config=None):
|
||||
# load configuration from in-memory string
|
||||
parser = ConfigParser.SafeConfigParser()
|
||||
parser.readfp(BytesIO(config_str))
|
||||
configutil.validate_config('<in-memory>', parser, _valid_config)
|
||||
fname = "<in-memory>"
|
||||
configutil.validate_config(fname, parser, _valid_config)
|
||||
|
||||
def write_new_config(cfg):
|
||||
"""
|
||||
We throw away any attempt to persist
|
||||
"""
|
||||
return _Config(parser, portnumfile, basedir, '<in-memory>', write_new_config)
|
||||
return _Config(parser, portnumfile, basedir, fname, write_new_config)
|
||||
|
||||
|
||||
def get_app_versions():
|
||||
|
Loading…
Reference in New Issue
Block a user