mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
Switch over to stdlib json
This commit is contained in:
parent
e339130e63
commit
f518c2a521
@ -746,7 +746,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi
|
||||
"""
|
||||
d = self.GET("/?t=json")
|
||||
def _check(res):
|
||||
decoded = simplejson.loads(res)
|
||||
decoded = json.loads(res)
|
||||
expected = {
|
||||
'introducers': {'statuses': []},
|
||||
'servers': {
|
||||
|
@ -1,5 +1,4 @@
|
||||
import time, os
|
||||
import simplejson
|
||||
import time, os, json
|
||||
|
||||
from twisted.web import http
|
||||
from nevow import rend, inevow, url, tags as T
|
||||
@ -219,7 +218,7 @@ class Root(rend.Page):
|
||||
},
|
||||
"servers": servers
|
||||
}
|
||||
return simplejson.dumps(data, indent=1) + "\n"
|
||||
return json.dumps(data, indent=1) + "\n"
|
||||
|
||||
def render_magic_folder(self, ctx, data):
|
||||
if self.client._magic_folder is None:
|
||||
|
Loading…
Reference in New Issue
Block a user