Merge lp:~wallyworld/lazr.enum/json-serialisation-support into lp:lazr.enum
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 37 | ||||||||||||
Proposed branch: | lp:~wallyworld/lazr.enum/json-serialisation-support | ||||||||||||
Merge into: | lp:lazr.enum | ||||||||||||
Diff against target: |
591 lines (+360/-67) 9 files modified
.bzrignore (+2/-0) _bootstrap/bootstrap.py (+229/-46) ez_setup.py (+1/-1) src/lazr/enum/NEWS.txt (+7/-0) src/lazr/enum/README.txt (+34/-0) src/lazr/enum/__init__.py (+3/-0) src/lazr/enum/_enum.py (+29/-19) src/lazr/enum/_json.py (+54/-0) src/lazr/enum/version.txt (+1/-1) |
||||||||||||
To merge this branch: | bzr merge lp:~wallyworld/lazr.enum/json-serialisation-support | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+102430@code.launchpad.net |
Commit message
Add json serialisation support and drive by fix a couple of minor bugs
Description of the change
== Implementation ==
This branch adds json serialisation support to enumerated types.
A enum instance is serialised as a dict containing:
- the enumerated type name as per the enumerated_
- the enum instance name
This information is sufficient to allow the dict to be deserialised back to an enum.
I had to upgrade bootstrap.py and ez_setup.py since they were way out of date.
(Ignore these in the diff since they are not ours).
I also fixed a couple of minor bugs as a drive by: bugs 524259 and 526484
== Tests ==
Add new doc tests to README.txt
== Lint ==
I didn't bother with:
ez_setup.py
_bootstrap/
since they are not ours.
Linting changed files:
.bzrignore
src/lazr/
src/lazr/
src/lazr/
src/lazr/
src/lazr/
src/lazr/
./src/lazr/
302: Line exceeds 80 characters.
419: Line exceeds 80 characters.
420: Line exceeds 80 characters.
./src/lazr/
25: 'from lazr.enum._enum import *' used; unable to detect undefined names
27: 'from lazr.enum._json import *' used; unable to detect undefined names
28: redefinition of unused '_all' from line 26
29: 'from lazr.enum.
./src/lazr/
29: redefinition of unused 'removeAllProxies' from line 27
29: E261 at least two spaces before inline comment
44: E261 at least two spaces before inline comment
Thank you.