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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user