fix jsonc.load()

This commit is contained in:
rolux 2011-10-12 12:26:26 +02:00
parent 525d71bf89
commit 4aeda6bff9

View file

@ -7,10 +7,8 @@ from js import minify
from utils import json
def load(filename):
with open(filename) as f:
data = loads(f.read())
return data
def load(f):
return loads(f.read())
def loads(source):
return json.loads(minify(source))