~allenap/maas/xxx-a-thon

« back to all changes in this revision

Viewing changes to src/maasserver/exceptions.py

  • Committer: MAAS Lander
  • Author(s): Gavin Panella
  • Date: 2016-02-11 12:25:26 UTC
  • mfrom: (4650.1.1 remove-simplejson)
  • Revision ID: maas_lander-20160211122526-21bdxd2jqitaqjtm
[r=blake-rouse,andreserl][bug=1543828][author=allenap] Remove simplejson as a dependency; use the stdlib's json module instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    "UnresolvableHost",
19
19
    ]
20
20
 
21
 
 
22
21
import http.client
 
22
import json
23
23
 
24
24
from django.core.exceptions import ValidationError
25
25
from django.http import (
26
26
    HttpResponse,
27
27
    HttpResponseRedirect,
28
28
)
29
 
import simplejson as json
30
29
 
31
30
 
32
31
class MAASException(Exception):