[tor-commits] [ooni-probe/master] Fix #569 (#570)
art at torproject.org
art at torproject.org
Tue Jul 26 11:00:20 UTC 2016
commit da2b17319dca42419f1c1f681645dde37c27033f
Author: Arturo Filastò <arturo at filasto.net>
Date: Tue Jul 19 23:43:09 2016 +0200
Fix #569 (#570)
"foo" == u"foo" is True, but "foo" is u"foo" is False.
Oh python, what you make me do...
---
ooni/deck.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ooni/deck.py b/ooni/deck.py
index aee3da9..7906900 100644
--- a/ooni/deck.py
+++ b/ooni/deck.py
@@ -205,7 +205,7 @@ class Deck(InputFile):
if net_test_loader.requiresTor:
self.requiresTor = True
except e.MissingTestHelper:
- if self.preferred_backend is "onion":
+ if self.preferred_backend == "onion":
self.requiresTor = True
self.netTestLoaders.append(net_test_loader)
More information about the tor-commits
mailing list