commit 3f32e4e42a35ac63d25177470b35f7d76883ea4d Author: juga0 juga@riseup.net Date: Thu Nov 8 08:33:09 2018 +0000
Compare the mayor number in version specification
Instead of comparing all the version. --- sbws/lib/v3bwfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py index 3665ae4..5fa1846 100644 --- a/sbws/lib/v3bwfile.py +++ b/sbws/lib/v3bwfile.py @@ -106,7 +106,7 @@ class V3BWHeader(object): if k in EXTRA_ARG_KEYVALUES]
def __str__(self): - if self.version == '1.1.0': + if self.version.startswith('1.'): return self.strv110 return self.strv200
tor-commits@lists.torproject.org