diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2016-02-29 15:50:10 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2016-02-29 15:50:38 +0900 |
commit | 6ea650e2c3c5cdc7ce80249449fe7ccaaaf35ace (patch) | |
tree | 31c943939900463e5a4e34fe522ff500d7a4a1fe | |
parent | 791497691aca7e9de75f93c607157f8efb6dbd51 (diff) | |
download | pygerrit-6ea650e2c3c5cdc7ce80249449fe7ccaaaf35ace.tar.gz |
Add missing docstring for Change#from_json
Closes #33
Change-Id: I57616a8b8fa513f0ce650613b1ed9ec31b0322b4
-rw-r--r-- | pygerrit/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pygerrit/models.py b/pygerrit/models.py index 284701d..5960286 100644 --- a/pygerrit/models.py +++ b/pygerrit/models.py @@ -74,6 +74,12 @@ class Change(object): @staticmethod def from_json(json_data): + r""" Create a Change instance. + + Return an instance of Change initialised with values from "change" + in `json_data`, or None if `json_data` does not contain "change". + + """ if "change" in json_data: return Change(json_data["change"]) return None |