1
0
mirror of https://github.com/djohnlewis/stackdump synced 2025-12-16 04:43:29 +00:00

Attempted to fix issues with Jython and the import process.

This commit is contained in:
Samuel Lai
2011-10-23 16:52:47 +11:00
parent 58f2225e4e
commit 59ab86dd59
10 changed files with 4352 additions and 4 deletions

View File

@@ -149,9 +149,15 @@ try:
# For Python < 2.6 or people using a newer version of simplejson
import simplejson as json
except ImportError:
# For Python >= 2.6
import json
try:
# For Python >= 2.6
import json
except ImportError:
# Jython has no in-built JSON package, so we'll use the specially
# included simplejson version. We don't want that to override the
# Python-bundled version though, hence this hack.
import jython_simplejson as simplejson
import jython_simplejson as json
try:
# Desirable from a timeout perspective.
from httplib2 import Http