[tor-commits] [sbws/master] Stop calling write method from the class
pastly at torproject.org
pastly at torproject.org
Wed Jul 11 15:05:40 UTC 2018
commit 67b8850ce7d1cbc9dc72f0be674c6e687bcadd1d
Author: juga0 <juga at riseup.net>
Date: Fri Jul 6 17:04:10 2018 +0000
Stop calling write method from the class
and call it from object instance, otherwise generate would fail.
write method should not be a classinstance since a Class won't
have useful information to write, and can't be an static method
since it requires an argument.
---
sbws/core/generate.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/core/generate.py b/sbws/core/generate.py
index 6492423..c0e7c8b 100644
--- a/sbws/core/generate.py
+++ b/sbws/core/generate.py
@@ -57,5 +57,5 @@ def main(args, conf):
return
bw_file = V3BWFile.from_arg_results(args, conf, results)
output = args.output or conf['paths']['v3bw_fname'].format(now_fname())
- V3BWFile.write(output)
+ bw_file.write(output)
log.info('Mean bandwidth per line: %f "KiB"', bw_file.avg_bw)
More information about the tor-commits
mailing list