jsonutils.load() accepts file pointer, not string

Renamed jsonutils.load() argument name to more appropriate one. This
name is also used in stdlib json documentation [1].

1: https://docs.python.org/2/library/json.html#json.load

Change-Id: Ia0cfce0e023ce29d3aad80a71039343643820bb4
(cherry picked from commit 9e5a39389c)
This commit is contained in:
Ihar Hrachyshka 2014-04-30 17:25:59 +02:00
parent d14f56f02a
commit cd909d83ba
1 changed files with 2 additions and 2 deletions

View File

@ -170,8 +170,8 @@ def loads(s):
return json.loads(s)
def load(s):
return json.load(s)
def load(fp):
return json.load(fp)
try: