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

[tor-commits] [sbws/master] Fix args initializing V3BWLine from lines



commit 0e49c8f9fb2a72a865421be52e666567ee747598
Author: juga0 <juga@xxxxxxxxxx>
Date:   Thu Aug 30 11:18:37 2018 +0000

    Fix args initializing V3BWLine from lines
---
 sbws/lib/v3bwfile.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index 448323c..22bf245 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -278,7 +278,11 @@ class V3BWLine(object):
         for k, v in kwargs.items():
             if k in BW_KEYVALUES_INT:
                 kwargs[k] = int(v)
-        bw_line = cls(**kwargs)
+        node_id = kwargs['node_id']
+        bw = kwargs['bw']
+        del kwargs['node_id']
+        del kwargs['bw']
+        bw_line = cls(node_id, bw, **kwargs)
         return bw_line
 
     @staticmethod



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