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

[tor-commits] [ooni-probe/master] Removed nested if statements and pointed to crate.io for import exception



commit eac8bfad5142259a70ecfedd49750739bb41cbcc
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxxxxxxxxx>
Date:   Fri Mar 23 20:16:44 2012 -0700

    Removed nested if statements and pointed to crate.io for import exception
---
 plugoo/tests.py   |    5 ++---
 tests/httphost.py |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/plugoo/tests.py b/plugoo/tests.py
index f7537de..f94ba04 100644
--- a/plugoo/tests.py
+++ b/plugoo/tests.py
@@ -78,9 +78,8 @@ class Test:
         if assets:
             self.logger.debug("Running through tests")
 
-            if extradata is not None:
-                if extradata['index']:
-                    index = extradata['index']
+            if extradata and extradata['index']:
+                index = extradata['index']
             else:
                 index = None
 
diff --git a/tests/httphost.py b/tests/httphost.py
index 0f33ca7..25adff2 100644
--- a/tests/httphost.py
+++ b/tests/httphost.py
@@ -23,7 +23,7 @@ monkey.patch_socket()
 try:
     from BeautifulSoup import BeautifulSoup
 except:
-    print "BeautifulSoup-3.2.1 is missing. Try doing: # easy_install beautifulsoup"
+    print "BeautifulSoup-3.2.1 is missing. Please see https://crate.io/packages/BeautifulSoup/";
 
 from plugoo.assets import Asset
 from plugoo.tests import Test



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