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

[tor-commits] [oonib/master] Fix typo in parsing of nettests.



commit 2fd5df09bd739c773eb58d2919c07e3dd24807d5
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Fri Mar 28 18:36:47 2014 +0100

    Fix typo in parsing of nettests.
    
    Thanks to @Darius for spotting it.
---
 oonib/policy/handlers.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oonib/policy/handlers.py b/oonib/policy/handlers.py
index 913aeb1..83a7f24 100644
--- a/oonib/policy/handlers.py
+++ b/oonib/policy/handlers.py
@@ -34,7 +34,7 @@ class Policy(object):
     def validateNettest(self, nettest_name):
         # XXX add support for version checking too.
         valid = False
-        if self.nettest:
+        if not self.nettest:
             valid = True
         for nt in self.nettest:
             if nettest_name == nt['name']:



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