Fixes issue #85. Also moves all json imports to go through oauth2client.anyjson. Reviewed in http://codereview.appspot.com/5531064/.
diff --git a/oauth2client/crypt.py b/oauth2client/crypt.py
index 323345a..3df861d 100644
--- a/oauth2client/crypt.py
+++ b/oauth2client/crypt.py
@@ -21,16 +21,7 @@
import time
from OpenSSL import crypto
-
-try: # pragma: no cover
- import simplejson
-except ImportError: # pragma: no cover
- try:
- # Try to import from django, should work on App Engine
- from django.utils import simplejson
- except ImportError:
- # Should work for Python2.6 and higher.
- import json as simplejson
+from anyjson import simplejson
CLOCK_SKEW_SECS = 300 # 5 minutes in seconds