Closed sanktnelson closed 2 years ago
Thanks for taking the time to send this over. This really needs to be reworked to not revert other recent fixes to the code. Some general advise for submitting pull requests (and git in general):
git add -p
Thanks for the advice and again please excuse the bad patch. The thing is, we use subversion internally and I won't have time to get into git for months at least, so I submitted it via the github webinterface in the hope that that is still more useful than not doing anything
Instead of changing the code from Python 3.x to 2.x, you could add code to make it compatible with both 2.7 and 3.x (ideally in a separate pull request).
For instance in Python 2.7 you can use from __future__ import absolute_import
so you don't have to change the imports. This future import will also be accepted in Python 3.x, it will just do nothing there, so there's not even a need to branch by version in this case.
changed Lepton.py to:
sorry, this is still for the old python2 code. I'm new to GIT and github and just wanted to get this code out there since it fixes some glaring omissions in the original.