[tor-commits] [ooni-probe/master] Removed nested if statements and pointed to crate.io for import exception
art at torproject.org
art at torproject.org
Wed Apr 4 18:05:50 UTC 2012
commit cd81a1d9f7d237d95b1b6c07414b493ee9f99cdd
Author: Isis Lovecruft <isis at patternsinthevoid.net>
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
More information about the tor-commits
mailing list