Skip to content
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

Python 3 compatibility #791

Open
wants to merge 2 commits into
base: 4.x
Choose a base branch
from
Open

Python 3 compatibility #791

wants to merge 2 commits into from

Conversation

ckaran
Copy link

@ckaran ckaran commented Aug 13, 2020

This commit updates all python code to be python2/3 compatibly using the futurize. I am unable to fully test this as OpenCV will not compile on my machine. Please inspect and test it before merging back into master.

Since python is a whitespace sensitive language, misplaced whitespace
can make it unparseable.  This commit fixes several places where there
was bad whitespace.
[futurize](https://www.python-future.org/futurize.html) is a tool to
rewrite python code so that it is compatible with both python 2 and python 3.
I have visually inspected the changes and believe all of them to be correct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant