diff options
| author | Jim Rollenhagen <jim@jimrollenhagen.com> | 2015-06-03 16:56:50 -0700 |
|---|---|---|
| committer | Jim Rollenhagen <jim@jimrollenhagen.com> | 2015-06-03 16:58:57 -0700 |
| commit | 601201d120b6e3996f616323186fa16dd9c1378c (patch) | |
| tree | 12b5e8283bd37e9e474a735bf8593dccedab03e1 /ironic_python_agent/encoding.py | |
| parent | 141191bcfac852486885011836f8512914e14052 (diff) | |
| download | ironic-python-agent-601201d120b6e3996f616323186fa16dd9c1378c.tar.gz | |
Update hacking and fix hacking violations
This does a few things:
* Update hacking to the version in global-requirements. Old hacking was
installing a version of pbr that was breaking other packages.
* Fix all the hacking/pep8 rules that updating hacking raised.
* Do some general docstring cleanup, while already in there cleaning up
a bunch of docstrings due to H405 violations.
Change-Id: I1fc1e59d4c3d7b14631f8b576e3f3854bc452188
Closes-Bug: #1461717
Diffstat (limited to 'ironic_python_agent/encoding.py')
| -rw-r--r-- | ironic_python_agent/encoding.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ironic_python_agent/encoding.py b/ironic_python_agent/encoding.py index bd521d3e..9022afd5 100644 --- a/ironic_python_agent/encoding.py +++ b/ironic_python_agent/encoding.py @@ -42,8 +42,9 @@ class RESTJSONEncoder(json.JSONEncoder): return super(RESTJSONEncoder, self).encode(o) + delimiter def default(self, o): - """Turn an object into a serializable object. In particular, by - calling :meth:`.Serializable.serialize`. + """Turn an object into a serializable object. + + In particular, by calling :meth:`.Serializable.serialize` on `o`. """ if isinstance(o, Serializable): return o.serialize() |
