New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python3 port #5
Python3 port #5
Conversation
|
@dottedmag any plan to look at this PR soon? thanks! |
C code comes from re-running SWIG to get autogenerated sources. More or less copied from dottedmag/pychm#5
C code comes from re-running SWIG to get autogenerated sources. More or less copied from dottedmag/pychm#5
C code comes from re-running SWIG to get autogenerated sources. More or less copied from dottedmag/pychm#5
C code comes from re-running SWIG to get autogenerated sources. More or less copied from dottedmag/pychm#5
|
i needed also other wise i'd get a |
|
About the encode() call. This is because you call LoadCHM with an str, the module expect bytes. I think that the case of calling the method with bytes should be supported, so the conversion should first test if the input is an str instance. Then, the default encoding used by encode() is utf-8, which may not be appropriate for file names on the system, better to use sys.getfilesystemencoding() Just pushed an update reflecting this. |
|
I'll have some time to brush the dust off pychm in October, thanks for keeping this branch up-to-date. |
|
I have just released 0.8.5 with Python 3 support and a bunch of bugfixes. Please check if it works for you. I have tried it on all CHM files I have and it worked. |
|
@medoc92 I expect to maintain this package from now on, so there is no need anymore to bundle it in |
|
@dottedmag Sure, I'll be glad to unbundle it as soon as the distributions ship with the python3 package. |
|
JFTR (as that account has not been deleted) Debian has been shipping a python3 package for pychm for a long time (we're gonna package this new upstream version soon too :) ) |
|
Sure, I saw it. However, there were more bytes/strings fixups needed beyond the patch you've posted on 1 Sep to cover all corner cases, so I'd definitely recommend packaging 0.8.5 ASAP. |
Port to python3, with hopefully minimal modifications.