From ec31a6021975033c38466e9635d421c0277d34f1 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 11 Aug 2011 20:40:50 -0500 Subject: [PATCH] Switching to the built-in json module, with a fallback to the external one --- ejpi/ejpi_qt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ejpi/ejpi_qt.py b/ejpi/ejpi_qt.py index 00dea95..31576c5 100755 --- a/ejpi/ejpi_qt.py +++ b/ejpi/ejpi_qt.py @@ -4,7 +4,11 @@ from __future__ import with_statement import os -import simplejson +try: + import json as simplejson +except ImportError: + print "json not available, falling back to simplejson" + import simplejson import string import logging import logging.handlers -- 1.7.9.5