[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] Replace conf['paths'] by conf.getpath('paths'



commit 3a4b2c0ef72bc3d4e554910e8278cf667711c744
Author: juga0 <juga@xxxxxxxxxx>
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)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits