openzim / python-libzim

Libzim binding for Python: read/write ZIM files in Python
https://pypi.org/project/libzim/
GNU General Public License v3.0
62 stars 20 forks source link

Various improvements #47

Closed rgaudin closed 4 years ago

rgaudin commented 4 years ago

Here's a collection of individual small fixes for identified issues:

Please look at them individually and let me know which would make sense to push as separate PRs.

rgaudin commented 4 years ago

@mgautierfr , all your comments have been addressed. There isn't much actual code change beside moving blocks around in the whole PR so I kept it all here.

You can look at individual commits for a quick lookup.

What's changed since last review:

rgaudin commented 4 years ago

OK thanks ; will do soon

rgaudin commented 4 years ago

Sorry about the delay, was a bit of a pain to reconcile but it's now clean and ready.

mgautierfr commented 4 years ago

I'm sorry but it is not totally clean yet :) Commit ed2267b (#47) remove the str in the test, but the acceptance of pathlib as argument come in the commit just after (https://github.com/openzim/python-libzim/pull/47/commits/5ecfab69ffe0586899cbd4ec8a3266c40ea88014)

About the execption, maybe we could return KeyError and IndexError instead of NotFound or RuntimeError. But we could change this in another PR, this one is long enough.

rgaudin commented 4 years ago

Ah! right, don't be sorry for my mistakes. Will do.

rgaudin commented 4 years ago

@mgautierfr That should be good now. Rebased on master. Tests pass on every single commit.

mgautierfr commented 4 years ago

We are good !