| Index: gm/gm_json.py
|
| diff --git a/gm/gm_json.py b/gm/gm_json.py
|
| index 3f43b340a54f78b48af9d9297742b77665873ca3..62d5755f52b8a8682fb45072e23ffbca401d8c87 100644
|
| --- a/gm/gm_json.py
|
| +++ b/gm/gm_json.py
|
| @@ -163,11 +163,14 @@ def SplitGmRelativeUrl(url):
|
|
|
| def LoadFromString(file_contents):
|
| """Loads the JSON summary written out by the GM tool.
|
| +
|
| Returns a dictionary keyed by the values listed as JSONKEY_ constants
|
| - above."""
|
| + above; if file_contents is empty, returns None."""
|
| # TODO(epoger): we should add a version number to the JSON file to ensure
|
| # that the writer and reader agree on the schema (raising an exception
|
| # otherwise).
|
| + if not file_contents:
|
| + return None
|
| json_dict = json.loads(file_contents)
|
| return json_dict
|
|
|
|
|