commit 464e824db5e0f203ef140784ba8469ba7d089440 Author: Arturo Filastò arturo@filasto.net Date: Tue Jul 26 12:55:27 2016 +0200
Always use == when checking for equality of strings --- ooni/deck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ooni/deck.py b/ooni/deck.py index 7906900..1e1d580 100644 --- a/ooni/deck.py +++ b/ooni/deck.py @@ -191,14 +191,14 @@ class Deck(InputFile): ) if test['options'].get('bouncer', None) is not None: self.bouncer = self._BouncerClient(test['options']['bouncer']) - if self.bouncer.backend_type is "onion": + if self.bouncer.backend_type == "onion": self.requiresTor = True self.insert(net_test_loader)
def insert(self, net_test_loader): """ Add a NetTestLoader to this test deck """ if (net_test_loader.collector is not None - and net_test_loader.collector.backend_type is "onion"): + and net_test_loader.collector.backend_type == "onion"): self.requiresTor = True try: net_test_loader.checkOptions()
tor-commits@lists.torproject.org