~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to services/diffservice

  • Committer: William Grant
  • Date: 2010-07-28 04:13:05 UTC
  • mfrom: (1801.1.2 die-cjson-die)
  • Revision ID: grantw@unimelb.edu.au-20100728041305-xwypm3cn1l1mnki1
Port from cjson to (simple)json.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import sys
29
29
import locale
30
30
 
31
 
import cjson
 
31
try:
 
32
    import json
 
33
except ImportError:
 
34
    import simplejson as json
32
35
import pysvn
33
36
 
34
37
import ivle.conf
66
69
        revision1=revs[0],
67
70
        revision2=revs[1]
68
71
    )
69
 
    print cjson.encode({'diff': diff_text.decode('utf-8')})
 
72
    print json.dumps({'diff': diff_text.decode('utf-8')})
70
73
except pysvn.ClientError, e:
71
74
    error = e[0]
72
75
 
84
87
    except IndexError:
85
88
        pass
86
89
 
87
 
    print cjson.encode({'error': error})
 
90
    print json.dumps({'error': error})