ref: 4de0c12b438cf99e90070e723508ce636278e063
parent: 7b3b1f11b2887a58c7fd1a91345f16e2924d4879
author: C Nelson <[email protected]>
date: Fri Apr 6 07:54:48 EDT 2012
Adding an exception handler around the unittest import.
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -11,7 +11,10 @@
from itertools import izip
#for testing all this crap
-import unittest2 as unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
if not hasattr(json, "dumps"):
json.dumps = json.write