[tor-commits] [ooni-probe/master] * Fixed a stupid typo error in one of the variable names.

isis at torproject.org isis at torproject.org
Thu Oct 11 22:43:59 UTC 2012


commit 370e634f5ad68649ce468aee15392ce3b1e423e2
Author: Isis Lovecruft <isis at torproject.org>
Date:   Thu Oct 11 22:23:48 2012 +0000

    * Fixed a stupid typo error in one of the variable names.
---
 ooni/plugins/dnstamper.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ooni/plugins/dnstamper.py b/ooni/plugins/dnstamper.py
index b4fb3de..e762b6c 100644
--- a/ooni/plugins/dnstamper.py
+++ b/ooni/plugins/dnstamper.py
@@ -173,12 +173,12 @@ class DNSTamperTest(OONITest):
         if self.local_options:
             if asset_file('hostnames'):
                 ## The default filename for the Alexa Top 1 Million:
-                if assets_file('hostnames') is 'top-1m.txt':
+                if asset_file('hostnames') == 'top-1m.txt':
                     assets.update({'hostnames': 
-                                   AlexaAsset(assets_file('hostnames'))})
+                                   AlexaAsset(asset_file('hostnames'))})
                 else:
                     assets.update({'hostnames': 
-                                   Asset(assets_file('hostnames'))})
+                                   Asset(asset_file('hostnames'))})
             else:
                 log.msg("Error! We need an asset file containing the " + 
                         "hostnames that we should test DNS with! Please use " + 





More information about the tor-commits mailing list