mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
Fix a BytesWarning.
This commit is contained in:
parent
2554112045
commit
a0302c50da
@ -449,12 +449,13 @@ def create_node(config):
|
||||
v = remote_config.get(k, None)
|
||||
if v is not None:
|
||||
# we're faking usually argv-supplied options :/
|
||||
v_orig = v
|
||||
if isinstance(v, str):
|
||||
v = v.encode(get_io_encoding())
|
||||
config[k] = v
|
||||
if k not in sensitive_keys:
|
||||
if k not in ['shares-happy', 'shares-total', 'shares-needed']:
|
||||
print(" {}: {}".format(k, v), file=out)
|
||||
print(" {}: {}".format(k, v_orig), file=out)
|
||||
else:
|
||||
print(" {}: [sensitive data; see tahoe.cfg]".format(k), file=out)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user