changeset 10:5e305b2569fe

fix for python 2.5
author Atul Varma <varmaa@toolness.com>
date Thu, 03 Jun 2010 07:04:21 +0000
parents 8345b393df5b
children 388528fb31c7
files bzezpatch/app.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bzezpatch/app.py	Wed Jun 02 23:57:45 2010 -0700
+++ b/bzezpatch/app.py	Thu Jun 03 07:04:21 2010 +0000
@@ -1,10 +1,14 @@
 import mimetypes
 import os
-import json
 import tempfile
 import urlparse
 import traceback
 
+try:
+    import json
+except ImportError:
+    import simplejson as json
+
 import bzezpatch.hg
 
 class App(object):