Merge lp:~antasi/pyexiv2/mutablemapping into lp:pyexiv2/0.2.x
Proposed by
Antti Siira
Status: | Merged |
---|---|
Merged at revision: | 327 |
Proposed branch: | lp:~antasi/pyexiv2/mutablemapping |
Merge into: | lp:pyexiv2/0.2.x |
Diff against target: |
88 lines (+55/-1) 2 files modified
src/pyexiv2/metadata.py (+9/-1) test/metadata.py (+46/-0) |
To merge this branch: | bzr merge lp:~antasi/pyexiv2/mutablemapping |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Tilloy | code functional | Approve | |
Review via email: mp+36770@code.launchpad.net |
Description of the change
Make ImageMetadata act like a Python MutableMapping.
To post a comment you must log in.
Thanks for the merge proposal!
I noticed the first revision (326) fixes a separate issue which wasn’t detected by the unit tests. Well spotted! I’m going to tweak this revision a bit and merge it first to keep things atomic, then I’ll review the actual implementation of the MutableMapping interface.
About the bug you fixed:
- the unit tests didn’t catch this problem, I’ll update them in order to avoid regressions in the future
- list.remove(x) may raise a ValueError, so the try… except… blocks should be adapted
As for the rest of the review, I’m running out of spare time this week and I’ll be away on holidays next week, but be assured that I’ll review it thoroughly when I get back. Thanks again for the valuable contribution!