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 for workunits #10815

Merged
merged 11 commits into from Sep 19, 2016
Merged

Python 3 compatibility for workunits #10815

merged 11 commits into from Sep 19, 2016

Conversation

onyb
Copy link
Contributor

@onyb onyb commented Aug 22, 2016

No description provided.

onyb added 11 commits August 18, 2016 18:44
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
$PYTHON defaults to "python"

Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
os.close(fd);
print 'ok'
os.close(fd)
print('ok')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need

from __future__ import print_function

for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tchaikov Since the print statement is a very simple one, we don't need that line.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oic, print() is introduced in py2.6, and we've bumped the supported python version to >= 2.6

@tchaikov
Copy link
Contributor

and needs to run through ceph-disk and cephfs qa suites

@tchaikov
Copy link
Contributor

@tchaikov tchaikov merged commit 440c360 into master Sep 19, 2016
@tchaikov tchaikov deleted the wip-qa-workunits-py3 branch September 19, 2016 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants