Skip to content

python3 fixup: changed print syntax - #410

Merged
rhaschke merged 2 commits into
moveit:masterfrom
v4hn:pr-master-fix-python3
Oct 17, 2019
Merged

python3 fixup: changed print syntax#410
rhaschke merged 2 commits into
moveit:masterfrom
v4hn:pr-master-fix-python3

Conversation

@v4hn

@v4hn v4hn commented Oct 10, 2019

Copy link
Copy Markdown
Contributor

Together with ros-infrastructure/rosdoc_lite#90
this allows to build our docs with python3

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I generally approve those changes, but I'm curious why you didn't added
from __future__ import print_function?

I think this is needed to be still compatible with Python 2 as well, isn't it?

@bmagyar

bmagyar commented Oct 13, 2019

Copy link
Copy Markdown
Member

I agree with @rhaschke , that would settle the print function use once and for all as it also disables Python2-style print statements. Make sure to put it as the first line of the file 👍

@v4hn

v4hn commented Oct 16, 2019

Copy link
Copy Markdown
Contributor Author

I think this is needed to be still compatible with Python 2 as well, isn't it?

In this case it's not necessary, as all calls to print require only a single parameter. 😎
But granted, it doesn't hurt either. I'll add it.

@rhaschke
rhaschke merged commit 89229e5 into moveit:master Oct 17, 2019
@rhaschke rhaschke mentioned this pull request Oct 6, 2020
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.

3 participants