[tor-commits] [sbws/master] Replace conf['paths'] by conf.getpath('paths'
pastly at torproject.org
pastly at torproject.org
Thu Aug 9 14:21:20 UTC 2018
commit 3a4b2c0ef72bc3d4e554910e8278cf667711c744
Author: juga0 <juga at riseup.net>
Date: Thu Aug 2 17:44:44 2018 +0000
Replace conf['paths'] by conf.getpath('paths'
---
sbws/core/generate.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sbws/core/generate.py b/sbws/core/generate.py
index 2055189..f10ecc1 100644
--- a/sbws/core/generate.py
+++ b/sbws/core/generate.py
@@ -59,6 +59,7 @@ def main(args, conf):
'ran sbws scanner recently?)')
return
bw_file = V3BWFile.from_arg_results(args, conf, results)
- output = args.output or conf['paths']['v3bw_fname'].format(now_fname())
+ output = args.output or \
+ conf.getpath('paths', 'v3bw_fname').format(now_fname())
bw_file.write(output)
log.info('Mean bandwidth per line: %f "KiB"', bw_file.avg_bw)
More information about the tor-commits
mailing list