-
Notifications
You must be signed in to change notification settings - Fork 82
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
Futurize the codebase for Python 3 support #424
Conversation
@breillyr have you had a chance to look at this? |
You need to import from
Anyway, whenever I try to build something, it ends with this traceback:
Please, ignore those html blocks in the traceback, this is how imagefactory prints it to stdout :/ I am testing your PR as if it was deployed on our Taskotron VMs (that means imagefactory and its TinMan plugin), you can see our scripts here: https://pagure.io/taskotron/base_images . I can look more into this issue after the weekend if the traceback is not enough. |
@frantisekz Just a note: future import of with_statement is only needed on Python 2.5. Anything older doesn't support it and anything newer already has it. Please, get rid of it entirely. |
Note 2: Instead of porting the bundled bottle from February 2012, maybe just update it to a recent version or get rid of bundling it? |
@hroncok Good catch, I didn't realize imagefactory was bundling bottle. It seems to work just fine after wiping the bundled version out and using bottle from python2-bottle (at least the Fedora build using TinMan, I don't know how to test the rest of imagefactory).
|
This is horribly out of date and imgfac supports python 3 (kind of) already... |
This PR attempts to make it Python 3 compatible. However, I don't know how to test this code, so I need some help validating whether it's working.
Fixes #423