From 4aeda6bff908c8dc513e3ef2618228d97622fb93 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 12 Oct 2011 12:26:26 +0200 Subject: [PATCH] fix jsonc.load() --- ox/jsonc.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ox/jsonc.py b/ox/jsonc.py index 1b94eae..9170d3c 100644 --- a/ox/jsonc.py +++ b/ox/jsonc.py @@ -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))