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

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



commit e0a3b0a68bcdb9480be6f3ca9a2268bd7311955b
Author: juga0 <juga@xxxxxxxxxx>
Date:   Tue Jul 24 17:16:40 2018 +0000

    Replace conf['paths'] by conf.getpath('paths')
---
 sbws/core/stats.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbws/core/stats.py b/sbws/core/stats.py
index 38f8978..f865b92 100644
--- a/sbws/core/stats.py
+++ b/sbws/core/stats.py
@@ -156,7 +156,7 @@ def main(args, conf):
     :param configparser.ConfigParser conf: parsed config files
     '''
 
-    datadir = conf['paths']['datadir']
+    datadir = conf.getpath('paths', 'datadir')
     if not os.path.isdir(datadir):
         fail_hard('%s does not exist', datadir)
 



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