[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Compare the mayor number in version specification
commit 3f32e4e42a35ac63d25177470b35f7d76883ea4d
Author: juga0 <juga@xxxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits