Closed alvinwan closed 7 years ago
Oooh. Interesting. To be honest, I never tested it with Python 3 (I should have, my bad), but kudos to you for reporting this.
I have released pycpd under MIT license, so you don’t really need my permission. But I think it might be a better idea if pycpd worked out of the box for both Python 2 and 3.
If you fork and submit a pull request, I will review it and release a new version of pycpd with your contribution marked in the release notes.
Your changes work Python 2 as well. I will update the repository and the package manager. Thanks.
Fixed in d9ee14999d726829caeda2c1ef206a86b0c2ac2e
Note that the fix will not appear on Pypi package manager until I upload it. But installation from source should be fine.
@siavashk sick thanks!
Changes are now available on Pypi.
I got the following errors when working with Python3. The package as-is has no problems with Python2 on my system though.
I fixed it by using relative imports:
Food for thought. I considered making another fork and pushing
pycpd3
to pip, but I wanted your @siavashk thoughts/permission first. I think the change would break Python2 compatibility.